Open FrankYang0529 opened 1 week ago
Hi @FrankYang0529 , I opened a PR for this behavior. Could you take a look? Thanks a lot!
I opened a PR for this behavior. Could you take a look? Thanks a lot!
17175
Hi @TaiJuWu, thanks for the PR. I also have a similar test case testPollSendRequestForRebalance
. We can also have your test after this PR is merged.
I opened a PR for this behavior. Could you take a look? Thanks a lot!
17175
Hi @TaiJuWu, thanks for the PR. I also have a similar test case
testPollSendRequestForRebalance
. We can also have your test after this PR is merged.
Hi @FrankYang0529 , I will close my PR because they do same thing and I leave a comment for testPollSendRequestForRebalance
.
Hey @FrankYang0529, so seems this draft is the PR we're keeping right? Let me know when it's ready for review and I'll be happy to take a look. Thanks!
Hi @lianetm, yes, the PR is ready for review. Thank you.
To fulfill "rebalances will only occur during an active call to KafkaConsumer#poll(Duration)", we should not send
JoinRequest
afterAsyncKafkaConsumer#subscribe
. Add a flagsubscriptionUpdated
toAbstractMembershipManager#onSubscriptionUpdated
. When callingAsyncKafkaConsumer#subscribe
, set the flag to true. When callingAsyncKafkaConsumer#subscribe
, send theJoinRequest
if the flag is true.Committer Checklist (excluded from commit message)