You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/02/06 17:23:59 UTC

[05/15] lucene-solr git commit: exempt NodeCommunicationException as well

exempt NodeCommunicationException as well


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

Branch: refs/heads/jira/lucene-5438-nrt-replication
Commit: 33890681a0efd840874c5ec79c8862a7e94e59ab
Parents: 1ae7291
Author: Mike McCandless <mi...@apache.org>
Authored: Sun Jan 24 19:50:59 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Sun Jan 24 19:50:59 2016 -0500

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/replicator/nrt/SimpleServer.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/33890681/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleServer.java
----------------------------------------------------------------------
diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleServer.java b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleServer.java
index f03a5c3..7a257de 100644
--- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleServer.java
+++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleServer.java
@@ -127,13 +127,13 @@ public class SimpleServer extends LuceneTestCase {
 
         success = true;
       } catch (Throwable t) {
-        if (t instanceof SocketException == false) {
+        if (t instanceof SocketException == false && t instanceof NodeCommunicationException == false) {
           node.message("unexpected exception handling client connection:");
           t.printStackTrace(System.out);
           // Test should fail with this:
           throw new RuntimeException(t);
         } else {
-          node.message("SocketException " + t + " handling client connection; ignoring");
+          node.message("exception " + t + " handling client connection; ignoring");
         }
       } finally {
         if (success) {