Reference Commits: 95583247c
Files (primary):
fdb-relational-core/.../RelationalKeyspaceProvider.java
Depends on: none
RelationalKeyspaceProvider is a JVM-wide singleton whose registerDomainIfExists mutated an internal map without a lock. Under parallel FRL construction this occasionally lost updates and duplicated domain registrations.
Wrap the read-then-mutate in a synchronized block, optionally taking a double-check approach so that we only synchronize if it doesn't already exist at the beginning.
Reference Commits:
95583247cFiles (primary):
fdb-relational-core/.../RelationalKeyspaceProvider.javaDepends on: none
RelationalKeyspaceProvideris a JVM-wide singleton whoseregisterDomainIfExistsmutated an internal map without a lock. Under parallel FRL construction this occasionally lost updates and duplicated domain registrations.Wrap the read-then-mutate in a
synchronizedblock, optionally taking a double-check approach so that we only synchronize if it doesn't already exist at the beginning.