-
Notifications
You must be signed in to change notification settings - Fork 505
Add injection of custom executor service to S3Base supplyAsync calls #1543
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
Conversation
Any custom requirements should be done by inheriting S3Base and override whatever methods you want. I am not sure why we need to take this into minio-java. |
74b14cf
to
a491d99
Compare
We are in an environment where we can't use the regular But in this situation allowing users to optionally supply their own Though we understand that this is an uncommon requirement, it would still be a great help to us if we can provide our own and I imagine there might be some other niche use cases that would benefit. Let me know what you think! |
5e2cfa9
to
30e9688
Compare
Any updates regarding this feature? It might be useful for propagation of micrometer observation context to okHttp3 client thread. |
Maybe @balamurugana could have another look? I'd be happy to revise it if there's anything you'd like to see different. |
+1 on this. In our use case we need to control the task executor as the ForkJoinExecutor is not suitable. to add more details: our use cases is an integration test in a dockerized environment with very limited resources and the ForkJoinExecutor hangs. |
A huge +1 on this issue. I'm willing to help in case any help is required. My scenario is that i need to perform some actions in InputStream's read methods (mainly updating download/upload progress). Since these methods are called in a different thread, i'm losing all the thread locals which are crucial for this. Currently i'm stuck with some prehistoric minio-java version. In case this PR goes through, it should be possible to provide an ExecutorService running on the caller thread, fixing my problem, despite being slightly hacky. |
I need to add following commit to be able to compile: mmadoo@8c0fd20 I create the PR delta11#1 to fix this branch |
Fix compilation issues in branch add-executor-service-to-builder
We have a use case where we need to provide our own thread pool for the
CompletableFuture.supplyAsync
to run on, currently that's not possible and it's preventing us from keeping up with library upgrades.