This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new a01251c811 HDDS-8839. Intermittent failure in
TestSecretKeySnapshot.testInstallSnapshot (#4952)
a01251c811 is described below
commit a01251c8113aee036fd7f229612a33c33cb5e558
Author: Duong Nguyen <[email protected]>
AuthorDate: Thu Jun 22 00:48:06 2023 -0700
HDDS-8839. Intermittent failure in
TestSecretKeySnapshot.testInstallSnapshot (#4952)
---
.../java/org/apache/hadoop/ozone/scm/TestSecretKeySnapshot.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeySnapshot.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeySnapshot.java
index 410fc5bd65..1d4fc95dbf 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeySnapshot.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeySnapshot.java
@@ -262,9 +262,12 @@ public final class TestSecretKeySnapshot {
!leaderSecretKeyManager.getCurrentSecretKey()
.equals(currentKeyPostSnapshot),
ROTATE_CHECK_DURATION_MS, ROTATE_DURATION_MS);
- assertEquals(leaderSecretKeyManager.getSortedKeys(),
- followerSecretKeyManager.getSortedKeys());
-
+ List<ManagedSecretKey> latestLeaderKeys =
+ leaderSecretKeyManager.getSortedKeys();
+ GenericTestUtils.waitFor(() ->
+ latestLeaderKeys.equals(
+ followerSecretKeyManager.getSortedKeys()),
+ ROTATE_CHECK_DURATION_MS, ROTATE_DURATION_MS);
}
private List<ContainerInfo> writeToIncreaseLogIndex(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]