diff --git a/src/test/kotlin/org/opensearch/replication/integ/rest/ReplicationStopThenRestartIT.kt b/src/test/kotlin/org/opensearch/replication/integ/rest/ReplicationStopThenRestartIT.kt index 3ad1b2811..33ebb7905 100644 --- a/src/test/kotlin/org/opensearch/replication/integ/rest/ReplicationStopThenRestartIT.kt +++ b/src/test/kotlin/org/opensearch/replication/integ/rest/ReplicationStopThenRestartIT.kt @@ -36,8 +36,7 @@ class ReplicationStopThenRestartIT : MultiClusterRestTestCase() { try { Assert.assertEquals(2, docCount(followerClient, followerIndexName)) } catch (ex: Exception) { - //Querying ES cluster throws random exceptions like ClusterManagerNotDiscovered or ShardsFailed etc, so catching them and retrying - logger.error("ankikala Exception {}", ex) + ex.printStackTrace(); Assert.fail("Exception while querying follower cluster. Failing to retry again {}") } }, 1, TimeUnit.MINUTES)