tisonkun commented on code in PR #18359:
URL: https://github.com/apache/pulsar/pull/18359#discussion_r1023687517


##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java:
##########
@@ -124,7 +124,12 @@ private static Provider loadConscryptProvider() {
             conscryptClazz = Class.forName("org.conscrypt.Conscrypt");
             conscryptClazz.getMethod("checkAvailability").invoke(null);
         } catch (Throwable e) {
-            log.warn("Conscrypt isn't available. Using JDK default security 
provider.", e);
+            if (e.getCause() instanceof UnsatisfiedLinkError) {

Review Comment:
   @codelipenghui @nodece Do we have an exception util like Flink's 
[`findThrowable`](https://github.com/apache/flink/blob/99c2a415e9eeefafacf70762b6f54070f7911ceb/flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java#L466-L482)?
 I'm afraid that the error may be changed to differ wrap level.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to