Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Quality Assurance
-
Low Hanging Fruit
-
All
-
None
-
Description
JAVA_TOOL_OPTIONS is a JVM override to allow setting JVM flags without modifying all code which creates the JVM, but for security reasons (see https://bugs.openjdk.java.net/browse/JDK-8039152) it needs to log to stderr. Python dtest uses the function assert_stderr_clean to check to see if stderr had any unexpected errors, and should whitelist JAVA_TOOL_OPTIONS so it doesn’t cause test failures.
PR: https://github.com/apache/cassandra-dtest/pull/56
Testing done
export JAVA_TOOL_OPTIONS='-ea' pytest \ --log-level="DEBUG" \ --log-cli-level="DEBUG" \ --junit-xml=pytest_result.xml \ --cassandra-dir="/cassandra" \ --keep-test-dir \ bootstrap_test::TestBootstrap::test_local_quorum_bootstrap