TaxonomyReader which supports ref-counting, has a decRef() method which delegates to an inner IndexReader and calls its .decRef(). The latter may close the reader (if the ref is zeroes) but the taxonomy would remain 'open' which will fail many of its method calls.
Also, the LTR's .close() method does not work in the same manner as IndexReader's - which calls decRef(), and leaves the real closing logic to the decRef(). I believe this should be the right approach for the fix.
|Field||Original Value||New Value|
|Attachment||LUCENE-3485.patch [ 12497652 ]|
|Assignee||Shai Erera [ shaie ]|
|Fix Version/s||3.5 [ 12317877 ]|
|Fix Version/s||4.0 [ 12314025 ]|
|Lucene Fields||New [ 10121 ]||New,Patch Available [ 10121,10120 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|