HADOOP-17982. OpensslCipher initialization error should log a WARN message. (#3599)
Change-Id: I070fc4784679b3be73aa3a11201bbae23c20ad4e
This commit is contained in:
parent
a0d8cde133
commit
d7c5400fbc
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user