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

Fix flaky TestRaftReconfigurationWithSimulatedRpc#testKillLeaderDuringReconf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • test
    • None

    Description

      https://github.com/apache/ratis/runs/7422593840?check_suite_focus=true

      https://github.com/apache/ratis/runs/7422066448?check_suite_focus=true

       

      Error:  Tests run: 17, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 57.647 s <<< FAILURE! - in org.apache.ratis.server.simulation.TestRaftReconfigurationWithSimulatedRpc
      Error:  testKillLeaderDuringReconf(org.apache.ratis.server.simulation.TestRaftReconfigurationWithSimulatedRpc)  Time elapsed: 19.62 s  <<< FAILURE!
      java.lang.AssertionError
          at org.junit.Assert.fail(Assert.java:87)
          at org.junit.Assert.assertTrue(Assert.java:42)
          at org.junit.Assert.assertFalse(Assert.java:65)
          at org.junit.Assert.assertFalse(Assert.java:75)
          at org.apache.ratis.server.impl.RaftServerTestUtil.waitAndCheckNewConf(RaftServerTestUtil.java:122)
          at org.apache.ratis.server.impl.RaftServerTestUtil.lambda$waitAndCheckNewConf$3(RaftServerTestUtil.java:92)
          at org.apache.ratis.util.function.CheckedRunnable.lambda$asCheckedSupplier$0(CheckedRunnable.java:32)
          at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:166)
          at org.apache.ratis.util.JavaUtils.attemptRepeatedly(JavaUtils.java:152)
          at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:186)
          at org.apache.ratis.server.impl.RaftServerTestUtil.waitAndCheckNewConf(RaftServerTestUtil.java:92)
          at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.runTestKillLeaderDuringReconf(RaftReconfigurationBaseTest.java:517)
          at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:125)
          at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:113)
          at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.testKillLeaderDuringReconf(RaftReconfigurationBaseTest.java:452)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
          at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
          at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
          at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.lang.Thread.run(Thread.java:750)

      Attachments

        Activity

          People

            Sammi Sammi Chen
            Sammi Sammi Chen
            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 - 1h
                1h