mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
[TEST] Add debug logging if an unexpected exception is thrown
This commit is contained in:
parent
96b62409a8
commit
a077fa9b07
@ -410,7 +410,12 @@ public class RemoteClusterServiceTests extends ESTestCase {
|
|||||||
});
|
});
|
||||||
failLatch.await();
|
failLatch.await();
|
||||||
assertNotNull(ex.get());
|
assertNotNull(ex.get());
|
||||||
assertTrue(ex.get().getClass().toString(), ex.get() instanceof TransportException);
|
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());
|
||||||
|
}
|
||||||
|
assertTrue("expected TransportException but got a different one [" + ex.get().getClass().toString() + "]",
|
||||||
|
ex.get() instanceof TransportException);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user