[ 
https://issues.apache.org/jira/browse/LUCENE-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir resolved LUCENE-5857.
---------------------------------
    Resolution: Duplicate

commit is atomic as of LUCENE-5925, so we don't have to deal with fallback. 
lookahead limit is removed, spinlock loop just retries as long as there is 
forward progress. IndexWriter init no longer does any of this since it has 
write.lock.

> make genLookaheadCountLimit configurable, add genLookbackCountLimit parameter
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-5857
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5857
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Christine Poerschke
>
> The problem we saw was that an error-in-final-commit during solr-shutdown led 
> to a corrupted segments_.... file which prevented subsequent solr-start, 
> details below.
> this change:
> * adds genLookbackCountLimit similar to the existing genLookaheadCountLimit
> * makes both parameters configurable (initial values defaulted to existing 
> behaviour)
> error-in-final-commit result:
> * segments_2fi5 file present and zero-bytes long 
> (https://issues.apache.org/jira/i#browse/SOLR-6296 concerns root cause)
> * segments_2fi4 file absent on disk (speculation: 2fi4 was result of 
> in-memory segment merging)
> * segments_2fi3 file present and usable (but not found by existing 
> looking-logic)
> * segments.gen file referenced 2fi3



--
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