Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1931 Support Zero-Copy in ratis-grpc
  3. RATIS-2159

TestRaftWithSimulatedRpc could "fail to retain".

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • server
    • None

    Description

      Error:  Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 42.31 s <<< FAILURE! - in org.apache.ratis.server.simulation.TestRaftWithSimulatedRpc
      Error:  org.apache.ratis.server.simulation.TestRaftWithSimulatedRpc.testWithLoad  Time elapsed: 8.47 s  <<< ERROR!
      java.lang.IllegalStateException: Failed to retain: object has already been completely released.
      	at org.apache.ratis.util.ReferenceCountedLeakDetector$Impl.retain(ReferenceCountedLeakDetector.java:116)
      	at org.apache.ratis.server.raftlog.segmented.SegmentedRaftLog.retainLog(SegmentedRaftLog.java:310)
      	at org.apache.ratis.server.raftlog.segmented.SegmentedRaftLog.get(SegmentedRaftLog.java:285)
      	at org.apache.ratis.RaftTestUtil.logEntriesContains(RaftTestUtil.java:187)
      	at org.apache.ratis.RaftTestUtil.logEntriesContains(RaftTestUtil.java:172)
      	at org.apache.ratis.RaftTestUtil.lambda$assertLogEntries$5(RaftTestUtil.java:250)
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
      	...
      	at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:593)
      	at org.apache.ratis.RaftTestUtil.assertLogEntries(RaftTestUtil.java:251)
      	at org.apache.ratis.RaftTestUtil.assertLogEntries(RaftTestUtil.java:242)
      	at org.apache.ratis.RaftBasicTests.testWithLoad(RaftBasicTests.java:424)
      	at org.apache.ratis.RaftBasicTests.lambda$testWithLoad$8(RaftBasicTests.java:344)
      	at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:143)
      	at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:121)
      	at org.apache.ratis.RaftBasicTests.testWithLoad(RaftBasicTests.java:344)
      	...
      

      See https://github.com/apache/ratis/actions/runs/10865610568/job/30154388685?pr=1150#step:5:741

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 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