You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/04/28 07:03:12 UTC

[6/7] lucene-solr:feature/autoscaling: SOLR-10376: Catch and log connection loss and session expired exception but rethrow on all other KeeperExceptions

SOLR-10376: Catch and log connection loss and session expired exception but rethrow on all other KeeperExceptions


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

Branch: refs/heads/feature/autoscaling
Commit: 73170ee06c6f0f3f918d0c4b3ff85d405e388d5f
Parents: bb4eb1c
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Fri Apr 28 12:09:16 2017 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Fri Apr 28 12:09:16 2017 +0530

----------------------------------------------------------------------
 .../org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/73170ee0/solr/core/src/java/org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java b/solr/core/src/java/org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java
index 1196139..3346965 100644
--- a/solr/core/src/java/org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java
+++ b/solr/core/src/java/org/apache/solr/cloud/autoscaling/OverseerTriggerThread.java
@@ -200,6 +200,8 @@ public class OverseerTriggerThread implements Runnable, Closeable {
           }
         }
       }, true);
+    } catch (KeeperException.ConnectionLossException | KeeperException.SessionExpiredException e) {
+      log.error("OverseerTriggerThread could not talk to ZooKeeper", e);
     } catch (KeeperException e) {
       log.error("Exception in OverseerTriggerThread", e);
       throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);