[ 
https://issues.apache.org/jira/browse/LUCENE-6508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569067#comment-14569067
 ] 

Robert Muir commented on LUCENE-6508:
-------------------------------------

I can't argue with this. I forgot to make it un-public. My original intention 
was to remove the timeout stuff in IndexWriterConfig and you just use this 
Sleeping factory if you want sleeping and retrying.

But I think a better path is to first look at changing the IndexWriterConfig 
default to be zero and deprecating it. If someone wants sleeping, we can just 
have that factory (and it has tests already). But i want all that under a 
separate issue from this one.

> Simplify Directory/lock api
> ---------------------------
>
>                 Key: LUCENE-6508
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6508
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Uwe Schindler
>         Attachments: LUCENE-6508-deadcode1.patch, LUCENE-6508.patch, 
> LUCENE-6508.patch, LUCENE-6508.patch
>
>
> See LUCENE-6507 for some background. In general it would be great if you can 
> just acquire an immutable lock (or you get a failure) and then you close that 
> to release it.
> Today the API might be too much for what is needed by IW.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to