You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/10/03 19:19:35 UTC

[lucene-solr] 02/06: @936 Revert to lost behavior.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 966722ed4b983cd10f1af470498758cd52584258
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sat Oct 3 13:04:45 2020 -0500

    @936 Revert to lost behavior.
---
 .../src/java/org/apache/solr/cloud/ShardLeaderElectionContext.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/cloud/ShardLeaderElectionContext.java b/solr/core/src/java/org/apache/solr/cloud/ShardLeaderElectionContext.java
index a88a1cc..cbe8c87 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ShardLeaderElectionContext.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ShardLeaderElectionContext.java
@@ -208,8 +208,8 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
           result = syncStrategy.sync(zkController, core, leaderProps, weAreReplacement);
           success = result.isSuccess();
         } catch (Exception e) {
-          ParWork.propagateInterrupt(e);
-          throw new SolrException(ErrorCode.SERVER_ERROR, e);
+          ParWork.propagateInterrupt("Exception while trying to sync", e);
+          result = PeerSync.PeerSyncResult.failure();
         }
         if (isClosed()) {
           return;