Details
-
Bug
-
Resolution: Fixed
-
High
-
2.7.8
-
None
-
None
Description
The withWriter() method in LuceneConnection acquires the writeLock and indexWriter outside of the try finally that ensures the writeLock is released.
This causes a hang when getIndexWriter throws a DbException, because the writeLock is not released.
See https://support.atlassian.com/browse/CRC-3348
Was introduced as part of a debugging effort here: https://extranet.atlassian.com/crucible/browse/FE-hg/src/java/com/cenqua/fisheye/lucene/LuceneConnection.java?r2=ea46e998cf0eb7c1c1b042f50a3882fc6b1498e7&r1=21058001e93fc0046a964fce4a459a583d6904a5