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;
try {
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.";
} else {
initIDs();
}
} catch (Throwable t) {
loadingFailure = t.getMessage();
LOG.debug("Failed to load OpenSSL Cipher.", t);
LOG.warn("Failed to load OpenSSL Cipher.", t);
} finally {
loadingFailureReason = loadingFailure;
}