Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5626 Track and Address Flaky tests
  3. HDDS-10788

Intermittent failure in testWatchForCommitForRetryfailure

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • test

    Description

      Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 134.993 s <<< FAILURE! - in org.apache.hadoop.ozone.client.rpc.TestWatchForCommit
      org.apache.hadoop.ozone.client.rpc.TestWatchForCommit.testWatchForCommitForRetryfailure  Time elapsed: 37.042 s  <<< FAILURE!
      java.lang.AssertionError: 
      
      Expecting:
       <"org.apache.ratis.protocol.exceptions.RaftRetryFailureException: Failed RaftClientRequest:client-35B425B0E6BC->7ca6ef5b-8396-458a-a334-21f1f3211157@group-3A5CD4773BBD, cid=51, seq=null, Watch-MAJORITY_COMMITTED(95), null for 3 attempts with RequestTypeDependentRetryPolicy{...}">
      not to contain:
       <"Watch-MAJORITY_COMMITTED">
      
      	at org.apache.hadoop.ozone.client.rpc.TestWatchForCommit.testWatchForCommitForRetryfailure(TestWatchForCommit.java:295)
      
            // client should not attempt to watch with
            // MAJORITY_COMMITTED replication level, except the grpc IO issue
            if (!logCapturer.getOutput().contains("Connection refused")) {
              assertThat(e.getMessage()).doesNotContain("Watch-MAJORITY_COMMITTED");
            }
      
      log
      [main] WARN  scm.XceiverClientRatis (XceiverClientRatis.java:watchForCommit(284)) - 3 way commit failed on pipeline ...
      java.util.concurrent.ExecutionException: org.apache.ratis.protocol.exceptions.NotReplicatedException: Request with call Id 50 and log index 95 is not yet replicated to ALL_COMMITTED
      	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
      	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
      	at org.apache.hadoop.hdds.scm.XceiverClientRatis.watchForCommit(XceiverClientRatis.java:279)
      	at org.apache.hadoop.ozone.client.rpc.TestWatchForCommit.lambda$testWatchForCommitForRetryfailure$0(TestWatchForCommit.java:286)
      	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:53)
      	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
      	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3115)
      	at org.apache.hadoop.ozone.client.rpc.TestWatchForCommit.testWatchForCommitForRetryfailure(TestWatchForCommit.java:285)
      

      Attachments

        Issue Links

          Activity

            People

              raju.balpande Raju Balpande
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: