From a55b0073e26bee9eb72bab2e58a7430b7b233cc5 Mon Sep 17 00:00:00 2001 From: Ankit Kala Date: Wed, 31 May 2023 15:59:55 +0530 Subject: [PATCH] Minor changes --- .../replication/integ/rest/ReplicationStopThenRestartIT.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)