Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-863 Fix Ratis Unit Test Failures
  3. RATIS-1015

Fix Failed UT: testBasicInstallSnapshot

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      2020-08-02T07:51:40.4122117Z [ERROR] testBasicInstallSnapshot(org.apache.ratis.server.simulation.TestRaftSnapshotWithSimulatedRpc) Time elapsed: 2.224 s <<< FAILURE!
      2020-08-02T07:51:40.4123608Z java.lang.AssertionError: Unexpected exit.
      2020-08-02T07:51:40.4125581Z at org.apache.ratis.util.ExitUtils.assertNotTerminated(ExitUtils.java:109)
      2020-08-02T07:51:40.4127583Z at org.apache.ratis.BaseTest.assertNoFailures(BaseTest.java:75)
      2020-08-02T07:51:40.4129936Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2020-08-02T07:51:40.4131908Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2020-08-02T07:51:40.4134053Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2020-08-02T07:51:40.4136869Z at java.lang.reflect.Method.invoke(Method.java:498)
      2020-08-02T07:51:40.4139743Z at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2020-08-02T07:51:40.4142397Z at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      2020-08-02T07:51:40.4144762Z at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      2020-08-02T07:51:40.4147563Z at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
      2020-08-02T07:51:40.4149760Z at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
      2020-08-02T07:51:40.4152113Z at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
      2020-08-02T07:51:40.4153780Z at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2020-08-02T07:51:40.4155400Z at java.lang.Thread.run(Thread.java:748)
      2020-08-02T07:51:40.4157463Z Caused by: org.apache.ratis.util.ExitUtils$ExitException: s3.serverHandler0 is terminating.
      2020-08-02T07:51:40.4161382Z at org.apache.ratis.util.ExitUtils.terminate(ExitUtils.java:141)
      2020-08-02T07:51:40.4163711Z at org.apache.ratis.util.ExitUtils.terminate(ExitUtils.java:151)
      2020-08-02T07:51:40.4166998Z at org.apache.ratis.server.simulation.RequestHandler$HandlerDaemon.run(RequestHandler.java:137)
      2020-08-02T07:51:40.4170409Z Caused by: java.lang.IllegalStateException: ILLEGAL TRANSITION: In SimpleStateMachine4Testing:s3:group-5C3F3E592635, PAUSED -> PAUSING
      2020-08-02T07:51:40.4172401Z at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:63)
      2020-08-02T07:51:40.4174848Z at org.apache.ratis.util.LifeCycle$State.validate(LifeCycle.java:115)
      2020-08-02T07:51:40.4176945Z at org.apache.ratis.util.LifeCycle.transition(LifeCycle.java:155)
      2020-08-02T07:51:40.4179235Z at org.apache.ratis.statemachine.SimpleStateMachine4Testing.pause(SimpleStateMachine4Testing.java:226)
      2020-08-02T07:51:40.4180979Z at org.apache.ratis.server.impl.ServerState.installSnapshot(ServerState.java:400)
      2020-08-02T07:51:40.4182963Z at org.apache.ratis.server.impl.RaftServerImpl.checkAndInstallSnapshot(RaftServerImpl.java:1194)
      2020-08-02T07:51:40.4184872Z at org.apache.ratis.server.impl.RaftServerImpl.installSnapshotImpl(RaftServerImpl.java:1147)
      2020-08-02T07:51:40.4186699Z at org.apache.ratis.server.impl.RaftServerImpl.installSnapshot(RaftServerImpl.java:1122)
      2020-08-02T07:51:40.4188567Z at org.apache.ratis.server.impl.RaftServerProxy.installSnapshot(RaftServerProxy.java:471)
      2020-08-02T07:51:40.4190604Z at org.apache.ratis.server.simulation.SimulatedServerRpc$1.handleRequest(SimulatedServerRpc.java:151)
      2020-08-02T07:51:40.4192589Z at org.apache.ratis.server.simulation.SimulatedServerRpc$1.handleRequest(SimulatedServerRpc.java:137)
      2020-08-02T07:51:40.4195221Z at org.apache.ratis.server.simulation.RequestHandler.handleRequest(RequestHandler.java:91)
      2020-08-02T07:51:40.4197792Z at org.apache.ratis.server.simulation.RequestHandler$HandlerDaemon.run(RequestHandler.java:124)

      Attachments

        Issue Links

          Activity

            People

              yjxxtd runzhiwang
              yjxxtd runzhiwang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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