From afa9b91f1fc04963a168410f56b8a2e9bf4a0019 Mon Sep 17 00:00:00 2001 From: Sumit Bansal Date: Mon, 12 Aug 2024 11:13:55 +0530 Subject: [PATCH 1/4] Fix test MasterServiceTests.testClusterStateUpdateLoggingWithDebugEnabled Signed-off-by: Sumit Bansal --- .../opensearch/cluster/service/MasterServiceTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/test/java/org/opensearch/cluster/service/MasterServiceTests.java b/server/src/test/java/org/opensearch/cluster/service/MasterServiceTests.java index 7562dfc2e9d33..db9abe0310e40 100644 --- a/server/src/test/java/org/opensearch/cluster/service/MasterServiceTests.java +++ b/server/src/test/java/org/opensearch/cluster/service/MasterServiceTests.java @@ -534,8 +534,8 @@ public void onFailure(String source, Exception e) { }); assertBusy(mockAppender::assertAllExpectationsMatched); // verify stats values after state is published - assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess()); - assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed()); + assertBusy(() -> assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess())); + assertBusy(() -> assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed())); } } } @@ -699,8 +699,8 @@ public void onFailure(String source, Exception e) { }); assertBusy(mockAppender::assertAllExpectationsMatched); // verify stats values after state is published - assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess()); - assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed()); + assertBusy(() -> assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess())); + assertBusy(() -> assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed())); } } } From 30e379a29baccd78ae665613b530d3ff570761a3 Mon Sep 17 00:00:00 2001 From: Sumit Bansal Date: Thu, 29 Aug 2024 13:55:45 +0530 Subject: [PATCH 2/4] Retry Build Signed-off-by: Sumit Bansal From 2819a9079e7551e7e896d62df1f057cc6857fd0f Mon Sep 17 00:00:00 2001 From: Sumit Bansal Date: Thu, 29 Aug 2024 18:54:30 +0530 Subject: [PATCH 3/4] Retry Build Signed-off-by: Sumit Bansal From 54625f31b2df92d5b6911735c06f3cbc80b9c99c Mon Sep 17 00:00:00 2001 From: Sumit Bansal Date: Thu, 29 Aug 2024 22:42:04 +0530 Subject: [PATCH 4/4] Retry Build Signed-off-by: Sumit Bansal