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

Let users opt-in for app initialization failures without native libs #2006

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

#1979 fails app initialization if native transport libs can not be
loaded. This is too aggressive. Instead, keep warning users and let
them opt-in for the enforced behavior.

Modifications:

  • Fail initialization only if users explicitly opt-it for this using
    -Dio.servicetalk.transport.netty.requireNativeLibs=true;
  • Improve exception and log messages;

Result:

Users can enforce requirement for native libs if they need.

Motivation:

apple#1979 fails app initialization if native transport libs can not be
loaded. This is too aggressive. Instead, keep warning users and let
them opt-in for the enforced behavior.

Modifications:

- Fail initialization only if users explicitly opt-it for this using
`-Dio.servicetalk.transport.netty.requireNativeLibs=true`;
- Improve exception and log messages;

Result:

Users can enforce requirement for native libs if they need.
@idelpivnitskiy idelpivnitskiy merged commit 6a74663 into apple:main Dec 10, 2021
@idelpivnitskiy idelpivnitskiy deleted the native branch December 10, 2021 01:08
@idelpivnitskiy
Copy link
Member Author

Because it's not an enforced behavior anymore, I'm going to cherry-pick this into 0.41

@idelpivnitskiy idelpivnitskiy self-assigned this Dec 10, 2021
idelpivnitskiy added a commit that referenced this pull request Dec 10, 2021
…2006)

Motivation:

#1979 fails app initialization if native transport libs can not be
loaded. This is too aggressive. Instead, keep warning users and let
them opt-in for the enforced behavior.

Modifications:

- Fail initialization only if users explicitly opt-it for this using
`-Dio.servicetalk.transport.netty.requireNativeLibs=true`;
- Improve exception and log messages;

Result:

Users can enforce requirement for native libs if they need.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants