yaalsn opened a new pull request, #18359:
URL: https://github.com/apache/pulsar/pull/18359

   
   ### Motivation
   
   When running tests in Macos Apple silicon, there will be a long stacktrace 
like this
   
   ```
   Caused by: java.lang.UnsatisfiedLinkError: no 
conscrypt_openjdk_jni-osx-aarch_64 in java.library.path: 
/Users/yaalsn/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429) ~[?:?]
        at java.lang.Runtime.loadLibrary0(Runtime.java:818) ~[?:?]
        at java.lang.System.loadLibrary(System.java:1989) ~[?:?]
        at 
org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
        at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 ~[?:?]
        at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at 
org.conscrypt.NativeLibraryLoader$1.run(NativeLibraryLoader.java:297) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at 
org.conscrypt.NativeLibraryLoader$1.run(NativeLibraryLoader.java:289) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at 
java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?]
        at 
org.conscrypt.NativeLibraryLoader.loadLibraryFromHelperClassloader(NativeLibraryLoader.java:289)
 ~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at 
org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:262) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at org.conscrypt.NativeLibraryLoader.load(NativeLibraryLoader.java:162) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at 
org.conscrypt.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:106)
 ~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at org.conscrypt.NativeCryptoJni.init(NativeCryptoJni.java:50) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at org.conscrypt.NativeCrypto.<clinit>(NativeCrypto.java:64) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        at org.conscrypt.Conscrypt.checkAvailability(Conscrypt.java:119) 
~[conscrypt-openjdk-uber-2.5.2.jar:2.5.2]
        ... 41 more
   
   ...
   ```
   
   There's no  osx aarch_64 conscrypt, so we can filter this stacktrace by 
catching `java.lang.UnsatisfiedLinkError`.
   
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local 
preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR 
description, or else your PR might not get merged. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: https://github.com/yaalsn/pulsar/pull/16


-- 
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