Remove synchronized from DirReader.reopen/clone
-----------------------------------------------
Key: LUCENE-2163
URL: https://issues.apache.org/jira/browse/LUCENE-2163
Project: Lucene - Java
Issue Type: Improvement
Components: Index
Reporter: Michael McCandless
Priority: Minor
Fix For: 3.1
Spinoff from LUCENE-2161, where the fact that DirReader.reopen is
sync'd was dangerous in the context of NRT (could block all searches
against that reader when CMS was throttling). So, with LUCENE-2161,
we're removing the synchronization when it's an NRT reader that you're
reopening.
But... why should we sync even for a "normal" reopen? There are
various sync'd methods on IndexReader/DirReader (we are reducing that,
with LUCENE-2161 and also LUCENE-2156), but, in general it doesn't
seem like "normal" reopen really needs to be sync'd. Performing a reopen
shouldn't incur any chance of blocking a search...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]