You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mikhail Khludnev <mk...@apache.org> on 2017/12/08 06:38:04 UTC

Why IndexFetcher commits after deleting obsolete index?

I mean this row
https://github.com/apache/lucene-solr/blame/master/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java#L458

Sure, "New index in Master. Deleting mine..." makes sense. But committing
right after that is not really determined. Eg if this empty slave commit is
delayed it's assigned with late timestamp, and ignores master commit as
old.

Don't you think it's a problem (at least for test stability)?

The possible solutions are
 - pass earler timestamp to commit explicitly, I'm not sure if it's ever
possible;
 - or always set skipCommitOnMasterVersionZero=true or by default at least.

More details at https://issues.apache.org/jira/browse/SOLR-11673
-- 
Sincerely yours
Mikhail Khludnev