Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes broken concurrency in SchemaCache
Previously there were only some data structures (maps/sets) that used implementations which could handle concurrent access. Seemingly that was added ad-hoc. Originally the state in this class was meant to not care about concurrency and instead rely on external synchronization. However this was never fully the case since there could be unguarded reads happening concurrently with updates to these non-concurrency-aware data structures, which means that some existing data could be observed as missing when other unrelated data items were removed or added. This was indeed proven by ConcurrentCreateDropIndexIT in an upcoming commit.
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters