Attila Doroszlai created HDDS-15868:
---------------------------------------
Summary: [JDK21] Enable dynamic agent loading for tests
Key: HDDS-15868
URL: https://issues.apache.org/jira/browse/HDDS-15868
Project: Apache Ozone
Issue Type: Improvement
Components: test
Reporter: Attila Doroszlai
{code:title=org.apache.hadoop.ozone.container.common.volume.TestStorageVolumeChecker-output.txt}
WARNING: A Java agent has been loaded dynamically
(/home/runner/.m2/repository/net/bytebuddy/byte-buddy-agent/1.12.19/byte-buddy-agent-1.12.19.jar)
WARNING: If a serviceability tool is in use, please run with
-XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with
-Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future
release
{code}
Can be reproduced by running {{TestStorageVolumeChecker}} with Java 21+.
We should add {{-XX:+EnableDynamicAgentLoading}} to
[{{maven-surefire-plugin.argLine}}|https://github.com/apache/ozone/blob/398709d6b68312306149144795c5796d4d3fa8b3/pom.xml#L149]
in {{pom.xml}}.
See also: https://openjdk.org/jeps/451
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]