Skip to content

Commit

Permalink
Retry validation on NodeNotConnectedException
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Jun 26, 2018
1 parent d1e43c6 commit 9ea4166
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.elasticsearch.test.disruption.NetworkDisruption.TwoPartitions;
import org.elasticsearch.test.disruption.ServiceDisruptionScheme;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.elasticsearch.transport.NodeNotConnectedException;

import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -207,7 +208,7 @@ public void testAckedIndexing() throws Exception {
assertTrue("doc [" + id + "] indexed via node [" + ackedDocs.get(id) + "] not found",
client(node).prepareGet("test", "type", id).setPreference("_local").get().isExists());
}
} catch (AssertionError | NoShardAvailableActionException e) {
} catch (AssertionError | NoShardAvailableActionException | NodeNotConnectedException e) {
throw new AssertionError(e.getMessage() + " (checked via node [" + node + "]", e);
}
}
Expand Down

0 comments on commit 9ea4166

Please sign in to comment.