From 841e43b3665aae5ae995fa590836490f3a6e8a07 Mon Sep 17 00:00:00 2001 From: dblock Date: Tue, 8 Nov 2022 19:30:29 +0000 Subject: [PATCH] Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky. Signed-off-by: dblock --- .../clustermanager/ClusterManagerTaskThrottlingIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/clustermanager/ClusterManagerTaskThrottlingIT.java b/server/src/internalClusterTest/java/org/opensearch/clustermanager/ClusterManagerTaskThrottlingIT.java index 2f3f0539602dd..328bc14883208 100644 --- a/server/src/internalClusterTest/java/org/opensearch/clustermanager/ClusterManagerTaskThrottlingIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/clustermanager/ClusterManagerTaskThrottlingIT.java @@ -164,9 +164,9 @@ public void onResponse(Object o) { @Override public void onFailure(Exception e) { + timedoutRequest.incrementAndGet(); latch.countDown(); assertTrue(e instanceof ProcessClusterEventTimeoutException); - timedoutRequest.incrementAndGet(); } }; executePutMappingRequests(totalRequest, node, listener);