-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add option to specify timeout for how long to wait for blocking Producer#send #121
Add option to specify timeout for how long to wait for blocking Producer#send #121
Conversation
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumerOptions.java
Outdated
Show resolved
Hide resolved
A little bit unsure regarding providing commit-offset-timeout as an option: https://github.com/confluentinc/parallel-consumer/blob/master/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ConsumerOffsetCommitter.java#L148 What's the reason for why timeouts isn't retried? 🤔
This exception would stop the control-loop. |
It does get retried, but it is retried through the same system as if the user's function threw an error. It was easier to do / simpler. Down side is that the message is of course also reprocessed, so not ideal. Regarding retrying, do you have any preference for how this should occur? Probably would have it's own PR as this PR as a simple config change is trivial to merge (sorry for delay). |
needs rebasing |
Perfectly understandable 👍 Agree that reprocessing in user-function should be limited as much as possible, so consumer/producer-errors should preferably be retried in the client lib itself if possible. In this specific case it might just be a matter of aligning the timeout so that the consumer is able to retry exhaustively. Perhaps https://docs.confluent.io/platform/current/installation/configuration/consumer-configs.html#consumerconfigs_request.timeout.ms is the one 🤔
NB: This exception actually caused the control-loop to stop as far as I remember, but msg was reprocessed after application restart :) |
490082b
to
be9518c
Compare
Sorry, what exception caused the system to shutdown? |
I think you need to mark this as ready for review? |
8e54843
to
6312a34
Compare
894ae62
to
96e49d3
Compare
If offset-commit timed out (10sec default): https://github.com/confluentinc/parallel-consumer/blob/master/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/ConsumerOffsetCommitter.java#L156
Sorry, rebased and marked as ready! Build failed, but not possible to see details: https://jenkins.confluent.io/job/confluentinc-pr/job/parallel-consumer/job/PR-121/3/display/redirect |
Ah sorry, our build system is under maintenance atm.
I'll check what the eta is. |
ok @JorgenRingen , issue has been raised internally - and we should have a public PR builder setup soon, along with matrix builds for multiple AK versions like we used to have with GH actions. |
FYI Matrix test against multiple AK and JDK versions in GH #103 |
Ok @JorgenRingen , if you rebase now it should build |
96e49d3
to
569ce98
Compare
…periodic-consumer-sync commit-mode Timeouts on commits will cause the control-loop to exit.
569ce98
to
b4e075b
Compare
No description provided.