Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Searchable Snapshot's CacheFile Lock less (elastic#63911)
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 elastic#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 elastic#63586
- Loading branch information