Description
Currently IndexNodeManager acquires the lock like below. Here if any exception occurs in IndexNodeImpl then lock would remain acquired
IndexNode acquire() { lock.readLock().lock(); if (closed) { lock.readLock().unlock(); return null; } else { boolean success = false; try { refreshPolicy.refreshOnReadIfRequired(refreshCallback); success = true; return new IndexNodeImpl(searcherHolder); } finally { if (!success) { lock.readLock().unlock(); } } } }
Attachments
Issue Links
- is related to
-
OAK-6635 IndexReader closed exception in DocumentQueue
- Closed