-
Notifications
You must be signed in to change notification settings - Fork 137
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
fix: Return cached pausedPartitionSet #620
fix: Return cached pausedPartitionSet #620
Conversation
Isn't something we would like to handle in https://github.com/confluentinc/parallel-consumer/blob/master/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/ConsumerManager.java the same way metadata are cached between polls? |
...lel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/BrokerPollSystem.java
Outdated
Show resolved
Hide resolved
This is a good idea. It would be best to split the |
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.
See #620 (comment)
PR Summary
|
Hi, thanks for comments. I moved cache logic into |
Signed-off-by: Taeik Lim <sibera21@gmail.com>
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.
It looks like the latest changes failed a few tests.
I offered some suggestions so that we just keep track of the size itself, which seems to address this issue.
Will need to add the following in BrokerPollSystem.initMetrics()
if you choose to go that route.
- this.consumerManager, consumerManager -> consumerManager.paused().size());
+ this.consumerManager, consumerManager -> consumerManager.getPausedPartitionSize().get());
...llel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/ConsumerManager.java
Outdated
Show resolved
Hide resolved
...llel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/ConsumerManager.java
Outdated
Show resolved
Hide resolved
...llel-consumer-core/src/main/java/io/confluent/parallelconsumer/internal/ConsumerManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Taeik Lim <sibera21@gmail.com>
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 thanks 👍
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
Resolves: #618
Checklist