Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2076

Intermittent timeout in TestRaftWithNetty#testWithLoad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • election, Netty
    • None

    Description

      [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 131.92 s <<< FAILURE! - in org.apache.ratis.netty.TestRaftWithNetty
      [ERROR] org.apache.ratis.netty.TestRaftWithNetty.testWithLoad  Time elapsed: 100.134 s  <<< ERROR!
      java.util.concurrent.TimeoutException: testWithLoad() timed out after 100 seconds
      	at java.util.ArrayList.forEach(ArrayList.java:1259)
      	at java.util.ArrayList.forEach(ArrayList.java:1259)
      	Suppressed: java.lang.InterruptedException: sleep interrupted
      		at java.lang.Thread.sleep(Native Method)
      		at java.lang.Thread.sleep(Thread.java:342)
      		at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:386)
      		at org.apache.ratis.util.TimeDuration.sleep(TimeDuration.java:353)
      		at org.apache.ratis.util.TimeDuration.sleep(TimeDuration.java:338)
      		at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:236)
      		at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:212)
      		at org.apache.ratis.util.JavaUtils.attemptRepeatedly(JavaUtils.java:204)
      		at org.apache.ratis.RaftTestUtil.changeLeader(RaftTestUtil.java:476)
      		at org.apache.ratis.RaftTestUtil.changeLeader(RaftTestUtil.java:468)
      		at org.apache.ratis.RaftBasicTests.testWithLoad(RaftBasicTests.java:409)
      		at org.apache.ratis.RaftBasicTests.lambda$testWithLoad$8(RaftBasicTests.java:342)
      		at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:141)
      		at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:121)
      		at org.apache.ratis.RaftBasicTests.testWithLoad(RaftBasicTests.java:342)
      		at org.apache.ratis.netty.TestRaftWithNetty.testWithLoad(TestRaftWithNetty.java:31)
      

      Failed in 5/100 runs: https://github.com/adoroszlai/ratis/actions/runs/8974630175

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h