You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2021/12/28 12:31:28 UTC

[ozone] branch master updated: HDDS-5319 Intermittent failure in TestSCMUpdateServiceGrpcServer (#2558)

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 a5cc886  HDDS-5319 Intermittent failure in TestSCMUpdateServiceGrpcServer  (#2558)
a5cc886 is described below

commit a5cc88635f9cf0dd36858bf69f477471996961f0
Author: Jasen Minton <ja...@gmail.com>
AuthorDate: Tue Dec 28 04:31:13 2021 -0800

    HDDS-5319 Intermittent failure in TestSCMUpdateServiceGrpcServer  (#2558)
---
 .../hdds/scm/update/server/TestSCMUpdateServiceGrpcServer.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/update/server/TestSCMUpdateServiceGrpcServer.java b/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/update/server/TestSCMUpdateServiceGrpcServer.java
index a68f2be..47495c9 100644
--- a/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/update/server/TestSCMUpdateServiceGrpcServer.java
+++ b/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/update/server/TestSCMUpdateServiceGrpcServer.java
@@ -188,9 +188,9 @@ public class TestSCMUpdateServiceGrpcServer {
       server.notifyCrlUpdate();
       GenericTestUtils.waitFor(() -> client.getUpdateCount()>1,
           100, 2000);
-      Assert.assertEquals(2, client.getUpdateCount());
+      Assert.assertTrue(2 <= client.getUpdateCount());
       Assert.assertEquals(0, client.getErrorCount());
-      Assert.assertEquals(1, client.getClientCRLStore()
+      Assert.assertTrue(1 >= client.getClientCRLStore()
           .getPendingCrlIds().size());
 
       GenericTestUtils.waitFor(() -> client.getPendingCrlRemoveCount()==1,
@@ -282,14 +282,14 @@ public class TestSCMUpdateServiceGrpcServer {
       client.createChannel();
       client.start();
       Assert.assertEquals(5, clientCRLStore.getLatestCrlId());
-      GenericTestUtils.waitFor(() -> client.getUpdateCount()>4,
+      GenericTestUtils.waitFor(() -> client.getUpdateCount()>5,
           100, 2000);
       revokeCertNow(certIds.get(6));
       // mostly noop
       server.notifyCrlUpdate();
       LOG.info("Test client restart end.");
 
-      GenericTestUtils.waitFor(() -> client.getUpdateCount()>5,
+      GenericTestUtils.waitFor(() -> client.getUpdateCount()>6,
           100, 2000);
       Assert.assertTrue(client.getUpdateCount()>=6);
       Assert.assertEquals(2, client.getErrorCount());

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org