-
Notifications
You must be signed in to change notification settings - Fork 864
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
Allow to override FUTURE_COMPLETION_EXECUTOR for S3Crt client #4841
Comments
I notice a huge performance benefit when using the injected quarkus ManagedExecutor for the DynamoDbAsyncClient (Netty): .asyncConfiguration(builder -> builder.advancedOption(SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR, managedExecutor)) |
Thank you for the feedback. I guess, we could expect the same boost with S3Crt. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
@zoewangg Too bad you didn't add SCHEDULED_EXECUTOR_SERVICE as suggested in other information. Should I open another issue ? |
@scrocquesel ah, sorry, I missed that. |
Ok, I will close the issue I just opened then. Thank you for the feedback |
Describe the feature
S3AsyncClientBuilder
allows to configure the executor used to complete future. This configuration is not exposed on theS3CrtAsyncClientBuilder
Use Case
In a quarkus application, futures are executed on a thread with a different TCCL and I encounter class not found exception when CDI proxy tries to create the real object from within the default
sdk-async-response
executor.Proposed Solution
Expose
advancedOption(SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR, executor)
somewhere inS3CrtAsyncClientBuilder
.Other Information
I think that
SCHEDULED_EXECUTOR_SERVICE
should also be configured.Acknowledgements
AWS Java SDK version used
2.23.6
JDK version used
17
Operating System and version
linux
The text was updated successfully, but these errors were encountered: