Deduplicate concurrent SchemaContext loads 90/82490/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 11 Jun 2019 16:53:18 +0000 (18:53 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 13 Jun 2019 08:06:44 +0000 (08:06 +0000)
commit6ee69cdac4289a3ef81c2ab989f40522149b89ce
tree0f5488eef0d40205f5b3802a760345b251018894
parent3d16f6dc0b532264d32b19f0331cd06065639486
Deduplicate concurrent SchemaContext loads

In case we are running concurrent SchemaContext computation, if
the result is not cached we will have multiple results. These
need to be reconciled with the cache, so that those results will
be squashed into a single instance.

JIRA: YANGTOOLS-1004
Change-Id: I82df2b32a534d0acc803548579fb8ad138853c68
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactory.java