Release IndexNode lock in finally clause
@@ -282,11 +282,14 @@ public class IndexNodeManager {
@Override
public void release() {
if (released.compareAndSet(false, true)) {
+ try {
//Decrement on each release
decrementSearcherUsageCount(holder.searcher);
+ } finally {
IndexNodeManager.this.release();
}
}
+ }
@Override
public IndexSearcher getSearcher() {
