[ https://issues.apache.org/jira/browse/CASSANDRA-15532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Capwell updated CASSANDRA-15532: -------------------------------------- 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 {code} 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 {code} was: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. > python dtest function assert_stderr_clean should exclude JAVA_TOOL_OPTIONS > -------------------------------------------------------------------------- > > Key: CASSANDRA-15532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15532 > Project: Cassandra > Issue Type: Improvement > Components: Test/dtest > Reporter: David Capwell > Assignee: David Capwell > Priority: Normal > > 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 > {code} > 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 > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org