[
https://issues.apache.org/jira/browse/LUCENE-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790354#action_12790354
]
Earwin Burrfoot commented on LUCENE-2156:
-----------------------------------------
bq. ensureOpen is only on a "best effort" basis; it makes no guarantee that it
will be "immediate"
Ehm. If you're okay with the possible case of ensureOpen()-guarded code to fail
in grotesque ways because IW was in fact closed, but your "best effort" failed
- why not drop ensureOpen() completely? It no longer "ensures" anything, what
is its purporse?
> use AtomicInteger/Boolean to track IR.refCount and IW.closed
> ------------------------------------------------------------
>
> Key: LUCENE-2156
> URL: https://issues.apache.org/jira/browse/LUCENE-2156
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 3.1
>
> Attachments: LUCENE-2156.patch, LUCENE-2156.patch
>
>
> Less costly than synchronized methods we have now...
--
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]