Description
IndexNode currently makes 2 call in release
@Override public void release() { if (released.compareAndSet(false, true)) { //Decrement on each release decrementSearcherUsageCount(holder.searcher); IndexNodeManager.this.release(); } }
Its possible that decrementSearcherUsageCount can throw exception and in that case lock would not be released leading to situation as seen in OAK-6619.
As a fix the lock should be released in finally
Attachments
Issue Links
- relates to
-
OAK-6635 IndexReader closed exception in DocumentQueue
- Closed