You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuqi Yan (Jira)" <ji...@apache.org> on 2024/04/11 05:41:00 UTC
[jira] [Updated] (CASSANDRA-19378) JMXStandardsTest fails when running with codecoverage
[ https://issues.apache.org/jira/browse/CASSANDRA-19378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuqi Yan updated CASSANDRA-19378:
---------------------------------
Source Control Link: https://github.com/apache/cassandra/pull/3242 (was: https://github.com/apache/cassandra/pull/3092)
> JMXStandardsTest fails when running with codecoverage
> -----------------------------------------------------
>
> Key: CASSANDRA-19378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19378
> Project: Cassandra
> Issue Type: Bug
> Components: Test/unit
> Reporter: Yuqi Yan
> Assignee: Yuqi Yan
> Priority: Normal
> Time Spent: 10m
> Remaining Estimate: 0h
>
> JMXStandardsTest is added in unit test since 4.1. I recently run this test with codecoverage and it fails:
> {code:java}
> ant codecoverage -Dtaskname=testsome -Dtest.name=org.apache.cassandra.tools.JMXStandardsTest {code}
> {code:java}
> [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)
> {code}
> This `$jacocoInit` method was included in the test, which should be excluded
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org