-
Notifications
You must be signed in to change notification settings - Fork 157
feature #193: Pause/Resume ParallelConsumer #198
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
You could add a test instance to the multi instance test class for that... |
Needs rebasing |
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumer.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumer.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumer.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumer.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/ParallelConsumer.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/State.java
Show resolved
Hide resolved
.../src/test/java/io/confluent/parallelconsumer/ParrallelEoSStreamProcessorPauseResumeTest.java
Outdated
Show resolved
Hide resolved
.../src/test/java/io/confluent/parallelconsumer/ParrallelEoSStreamProcessorPauseResumeTest.java
Outdated
Show resolved
Hide resolved
.../src/test/java/io/confluent/parallelconsumer/ParrallelEoSStreamProcessorPauseResumeTest.java
Outdated
Show resolved
Hide resolved
...lel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/BrokerPollSystem.java
Outdated
Show resolved
Hide resolved
Thanks for the review. I incorporated all review comments. Only open points:
|
d3bd61d
to
5320a25
Compare
5320a25
to
9176a1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cb0317d
to
691eb19
Compare
PriorityQueue only provides a sorted `poll`, whereas TreeSet iterates in sorted order.
f8666a7
to
76c6fef
Compare
# Conflicts: # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/AbstractParallelEoSStreamProcessor.java # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/PartitionState.java # parallel-consumer-core/src/test/resources/logback-test.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
Apologies this took so long to get merged - timing of it's arrival with the big 0.5 refactors complicated matters. Glad it's in now! |
Heya @nioertel , I just noticed we have the public pause and resume methods on the broker poller, but they don't appear to be called from anywhere? if we pause the controller - the poller will naturally pause itself when the buffers fill up. Did we make a mistake adding them in? I'm about to release 5.2.5, and had a note to audit the pausing and came across this. |
…cident (#522) Poller pausing happens naturally via back pressure if the controller is paused. See comment where removal was discussed, but some fragments were left in: #198 - #198 (comment)
This PR implements a pause/resume functionality for the ParallelConsumer (see #193)
Tasks: