This is an automated email from the ASF dual-hosted git repository. stevel pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new ddede7a HADOOP-16174. Disable wildfly logs to the console. ddede7a is described below commit ddede7ae6fbbadbe08861bc85a664b73d66f77c7 Author: Denes Gerencser <dgerenc...@cloudera.com> AuthorDate: Sat Mar 9 18:45:17 2019 +0000 HADOOP-16174. Disable wildfly logs to the console. Follow-on to HADOOP-15851. Author: Denes Gerencser <dgerenc...@cloudera.com> --- .../java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java index 6d3e4ea..01dca4c 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java @@ -120,9 +120,12 @@ public final class SSLSocketFactoryEx extends SSLSocketFactory { switch (preferredChannelMode) { case Default: try { - java.util.logging.Logger.getLogger(SSL.class.getName()).setLevel(Level.WARNING); + java.util.logging.Logger logger = java.util.logging.Logger.getLogger(SSL.class.getName()); + logger.setLevel(Level.WARNING); ctx = SSLContext.getInstance("openssl.TLS"); ctx.init(null, null, null); + // Strong reference needs to be kept to logger until initialization of SSLContext finished (see HADOOP-16174): + logger.setLevel(Level.INFO); channelMode = SSLChannelMode.OpenSSL; } catch (NoSuchAlgorithmException e) { LOG.warn("Failed to load OpenSSL. Falling back to the JSSE default."); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org