This is an automated email from the ASF dual-hosted git repository. alexey pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kudu.git
commit 407c93a04bc2914524295c352afd1cfc4afb19e4 Author: Alexey Serbin <[email protected]> AuthorDate: Fri Mar 20 14:40:53 2020 -0700 [test] add securityDebug option for Java tests Added securityDebug option to troubleshoot Kerberos and TLS issues. When enabled, tests output information on TLS cipher suite selection, data sent during TLS connection negotiation, Kerberos credentials cache information, etc. I found it useful when debugging a flakiness in TestSecurity. Change-Id: I0a1fbe8ec72f9bcb80dbeb23c68676dc5f0654c8 Reviewed-on: http://gerrit.cloudera.org:8080/15515 Reviewed-by: Grant Henke <[email protected]> Tested-by: Alexey Serbin <[email protected]> --- java/gradle/tests.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/gradle/tests.gradle b/java/gradle/tests.gradle index 51a3d7f..49d9217 100644 --- a/java/gradle/tests.gradle +++ b/java/gradle/tests.gradle @@ -67,6 +67,12 @@ tasks.withType(Test) { systemProperty "java.net.preferIPv4Stack", true systemProperty "java.security.egd", "file:/dev/urandom" // Improve RNG generation speed. + if (propertyExists("securityDebug")) { + systemProperty "sun.security.krb5.debug", true + systemProperty "sun.security.spnego.debug", true + systemProperty "javax.net.debug", "all" + } + // Only use the local KuduBinDir if we are not using the kudu-binary jar. if (!propertyExists("useBinJar")) { // Set kuduBinDir to the binaries to use with the MiniKuduCluster.
