Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](jni) avoid coredump if failed to get jni env (#32950) #33012

Merged
merged 1 commit into from
Mar 29, 2024

Commits on Mar 29, 2024

  1. [fix](jni) avoid coredump if failed to get jni env (apache#32950)

    This PR apache#32217 find a problem that may failed to get jni env.
    And it did a work around to avoid BE crash.
    
    This PR followup this issue, to avoid BE crash when doing `close()` of JniConnector
    if failed to get jni env.
    
    The `close()` method will return error when:
    1. Failed to get jni env
    2. Failed to release jni resource.
    
    This PR will ignore the first error, and still log fatal for second error
    morningman committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    2ee9ca3 View commit details
    Browse the repository at this point in the history