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

Shai Erera commented on LUCENE-5661:
------------------------------------

I hit this confusing magic order myself a couple days ago, while writing a 
test. +1 for unifying both settings, perhaps stuff them under a 
setFlushConditions or something?

> LiveIndexWriterConfig has setters that require magical order
> ------------------------------------------------------------
>
>                 Key: LUCENE-5661
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5661
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Specifically setRamBufferSizeMB and setMaxBufferedDocs.
> Furthermore these are "live" settings on IWC, so there are potential race 
> conditions.
> It would be good if there were a better API, even if that just means 
> documenting "if both X and Y are set, X takes precedence".



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to