HADOOP-17982. OpensslCipher initialization error should log a WARN message. (#3599)

Change-Id: I070fc4784679b3be73aa3a11201bbae23c20ad4e
This commit is contained in:
Wei-Chiu Chuang 2021-12-10 17:14:04 +08:00 committed by GitHub
parent a0d8cde133
commit d7c5400fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,14 +84,14 @@ static int get(String padding) throws NoSuchPaddingException {
String loadingFailure = null; String loadingFailure = null;
try { try {
if (!NativeCodeLoader.buildSupportsOpenssl()) { if (!NativeCodeLoader.buildSupportsOpenssl()) {
PerformanceAdvisory.LOG.debug("Build does not support openssl"); PerformanceAdvisory.LOG.warn("Build does not support openssl");
loadingFailure = "build does not support openssl."; loadingFailure = "build does not support openssl.";
} else { } else {
initIDs(); initIDs();
} }
} catch (Throwable t) { } catch (Throwable t) {
loadingFailure = t.getMessage(); loadingFailure = t.getMessage();
LOG.debug("Failed to load OpenSSL Cipher.", t); LOG.warn("Failed to load OpenSSL Cipher.", t);
} finally { } finally {
loadingFailureReason = loadingFailure; loadingFailureReason = loadingFailure;
} }