[ https://issues.apache.org/jira/browse/LUCENE-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730272#action_12730272 ]
Michael McCandless commented on LUCENE-1726: -------------------------------------------- {quote} I haven't really figured out a clean way to move the reader creation out of the reader pool synchronization. It turns out to be somewhat tricky, unless we redesign our synchronization. {quote} Maybe we should simply hold off for now? I don't think this sync is costing much in practice, now. Ie, IndexReader.open is not concurrent when opening its segments; nor would we expect multiple threads to be calling IndexWriter.getReader concurrently. There is a wee bit of concurrency we are preventing, ie for a merge or applyDeletes to get a reader just as an NRT reader is being opened, but realistically 1) that's not very costly, and 2) we can't gain that concurrency back anyway because we synchronize on IW when opening the reader. > IndexWriter.readerPool create new segmentReader outside of sync block > --------------------------------------------------------------------- > > Key: LUCENE-1726 > URL: https://issues.apache.org/jira/browse/LUCENE-1726 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 2.4.1 > Reporter: Jason Rutherglen > Assignee: Michael McCandless > Priority: Trivial > Fix For: 3.1 > > Attachments: LUCENE-1726.patch, LUCENE-1726.patch, LUCENE-1726.patch, > LUCENE-1726.patch, LUCENE-1726.patch, LUCENE-1726.patch, > LUCENE-1726.trunk.test.patch > > Original Estimate: 48h > Remaining Estimate: 48h > > I think we will want to do something like what field cache does > with CreationPlaceholder for IndexWriter.readerPool. Otherwise > we have the (I think somewhat problematic) issue of all other > readerPool.get* methods waiting for an SR to warm. > It would be good to implement this for 2.9. -- 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org