Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17884

[jamm] Test failure: o.a.c.repair.RepairJobTest.testNoTreesRetainedAfterDifference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 4.0.x, 4.1.x
    • Jamm, Test/unit
    • None
    • Correctness - Test Failure
    • Normal
    • Normal
    • User Report
    • All
    • None

    Description

      The unit test org.apache.cassandra.repair.RepairJobTest#testNoTreesRetainedAfterDifference seems to be slightly flaky at least in 4.0. We haven't seen it failing on Butler, but after a failure on a patch branch, this repeated run shows a 0.28% flakiness:

      java.lang.reflect.InaccessibleObjectException: Unable to make field private jdk.internal.platform.cgroupv1.SubSystem$MemorySubSystem jdk.internal.platform.cgroupv1.Metrics.memory accessible: module java.base does not "opens jdk.internal.platform.cgroupv1" to unnamed module @157853da
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
      	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
      	at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
      	at org.github.jamm.MemoryMeter.addFieldChildren(MemoryMeter.java:330)
      	at org.github.jamm.MemoryMeter.measureDeep(MemoryMeter.java:269)
      	at org.apache.cassandra.utils.ObjectSizes.measureDeep(ObjectSizes.java:216)
      	at org.apache.cassandra.repair.RepairJobTest.testNoTreesRetainedAfterDifference(RepairJobTest.java:271)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      Flakiness is really low but the failure is clearly reproducible in j11.

      Attachments

        1. RepairSessionTree.txt
          4 kB
          shylaja kokoori

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adelapena Andres de la Peña
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: