[TEST] Expect nodes getting disconnected quickly
If all nodes get disconnected before we can send the request we might try to reconnect and that will fail with an ISE instead of the a transport exception. Closes #25301
This commit is contained in:
parent
a4fae1540e
commit
1205610023
|
@ -410,6 +410,9 @@ public class RemoteClusterServiceTests extends ESTestCase {
|
|||
});
|
||||
failLatch.await();
|
||||
assertNotNull(ex.get());
|
||||
if (ex.get() instanceof IllegalStateException) {
|
||||
assertEquals(ex.get().getMessage(), "no seed node left");
|
||||
} else {
|
||||
if (ex.get() instanceof TransportException == false) {
|
||||
// we have an issue for this see #25301
|
||||
logger.error("expected TransportException but got a different one see #25301", ex.get());
|
||||
|
@ -422,3 +425,4 @@ public class RemoteClusterServiceTests extends ESTestCase {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue