diff --git a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java index f49f626f5d3..5de9581cce0 100644 --- a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java +++ b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java @@ -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");