Refactor SharedSchemaContextFactory 34/95234/5
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 19 Feb 2021 10:20:09 +0000 (11:20 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 19 Feb 2021 16:20:12 +0000 (17:20 +0100)
commited8e195e6e5343d951a60ca008d5586575f2b8b4
tree0f6c77b686fc9a1b74d2f20e33daafd19c3fe640
parent43657f12c39e61d51d178e99075e5b0e3eea4b24
Refactor SharedSchemaContextFactory

Update SharedSchemaContextFactory design by implementing an explicit
cache instead of attempting to use Guava. While this is a bit more
code, it solves the problem of initial thundering heard causing
concurrent EffectiveModelContext.

JIRA: YANGTOOLS-1252
Change-Id: If6e41a8611b650018a1b8961e9c945dfab1f1d88
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/AssembleSources.java [new file with mode: 0644]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedEffectiveModelContextFactory.java [new file with mode: 0644]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactory.java [deleted file]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaRepository.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SourceIdMismatchDetector.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedEffectiveModelContextFactoryTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactoryTest.java with 92% similarity]