Skip to content

Commit f4cc251

Browse files
Fix Flaky Test SpecificClusterManagerNodesIT.testElectOnlyBetweenClusterManagerNodes (#17640) (#18323)
(cherry picked from commit c472314) Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b2363b9 commit f4cc251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/opensearch/cluster/SpecificClusterManagerNodesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public void testElectOnlyBetweenClusterManagerNodes() throws Exception {
267267
.nodes()
268268
.getClusterManagerNode()
269269
.getName();
270-
} catch (ClusterManagerNotDiscoveredException e) {
270+
} catch (Exception e) {
271271
logger.debug("failed to get cluster-manager name", e);
272272
return null;
273273
}

0 commit comments

Comments
 (0)