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

JMXStandardsTest fails when running with codecoverage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • None
    • Test/unit
    • None

    Description

      JMXStandardsTest is added in unit test since 4.1. I recently run this test with codecoverage and it fails:

      ant codecoverage -Dtaskname=testsome -Dtest.name=org.apache.cassandra.tools.JMXStandardsTest 
      [junit-timeout] ------------- ---------------- --------------- [junit-timeout] Testcase: interfaces(org.apache.cassandra.tools.JMXStandardsTest):      FAILED [junit-timeout] Errors detected while validating MBeans [junit-timeout] Error at signature parameter; type java.lang.invoke.MethodHandles.Lookup is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] Error at signature parameter; type java.lang.Class is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] junit.framework.AssertionFailedError: Errors detected while validating MBeans [junit-timeout] Error at signature parameter; type java.lang.invoke.MethodHandles.Lookup is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] Error at signature parameter; type java.lang.Class is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout]         at org.apache.cassandra.tools.JMXStandardsTest.interfaces(JMXStandardsTest.java:156) [junit-timeout]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit-timeout]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [junit-timeout]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      This `$jacocoInit` method was included in the test, which should be excluded

       

      Attachments

        Issue Links

          Activity

            People

              yukei Yuqi Yan
              yukei Yuqi Yan
              Yuqi Yan
              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 - 10m
                  10m