SOLR-11216: Fix test failures, since the new PeerSyncWithLeader won't open a realtime searcher everytime

This commit is contained in:
Cao Manh Dat 2018-07-03 09:02:16 +07:00
parent 9a9c65a6ba
commit d38a1753d5
1 changed files with 3 additions and 0 deletions

View File

@ -802,6 +802,9 @@ public class RecoveryStrategy implements Runnable, Closeable {
throw new SolrException(ErrorCode.SERVER_ERROR, "Replay failed");
}
}
// the index may ahead of the tlog's caches after recovery, by calling this tlog's caches will be purged
core.getUpdateHandler().getUpdateLog().openRealtimeSearcher();
// solrcloud_debug
cloudDebugLog(core, "replayed");