lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject lucene-solr:branch_7x: SOLR-11216: Fix test failures, since the new PeerSyncWithLeader won't open a realtime searcher everytime
Date Tue, 03 Jul 2018 02:03:55 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 5f6192763 -> 32ccf6132


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/32ccf613
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/32ccf613
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/32ccf613

Branch: refs/heads/branch_7x
Commit: 32ccf6132614677b6bcef2f159a05d211284f3b1
Parents: 5f61927
Author: Cao Manh Dat <caomanhdat@Caos-iMac.local>
Authored: Tue Jul 3 09:02:16 2018 +0700
Committer: Cao Manh Dat <datcm@apache.org>
Committed: Tue Jul 3 09:03:45 2018 +0700

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/32ccf613/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java
----------------------------------------------------------------------
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 f49f626..5de9581 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");


Mime
View raw message