From 33890681a0efd840874c5ec79c8862a7e94e59ab Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sun, 24 Jan 2016 19:50:59 -0500 Subject: [PATCH] exempt NodeCommunicationException as well --- .../test/org/apache/lucene/replicator/nrt/SimpleServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f03a5c3361c..7a257de89ab 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) {