Skip to content

Commit 4369211

Browse files
Make Searchable Snapshot's CacheFile Lock less (#63911) (#64124)
Replacing the mechanism for eviction and listener references via a read-write lock by a reference counting implementation. This fixes a bug that caused test failure #63586 in which concurrently trying to acquire or release an eviction listener while doing a file operation would sometimes lead to throwing an exception since the `tryLock` call on the read lock would fail in this case. Also this removes the possibility of blocking cluster state updates as a result of them waiting on the write-lock which might take a long time if a slow read operation executes concurrently. Closes #63586
1 parent b94fed4 commit 4369211

File tree

3 files changed

+416
-362
lines changed

3 files changed

+416
-362
lines changed

0 commit comments

Comments
 (0)