KAFKA-15276: Implement event plumbing for ConsumerRebalanceListener callbacks#14640
KAFKA-15276: Implement event plumbing for ConsumerRebalanceListener callbacks#14640dajac merged 85 commits intoapache:trunkfrom kirktrue:KAFKA-15276-partition-reconciliation
Conversation
Added logic for reconciling partition assignment between the target assignment provided by the group coordinator and the current assignment as specified in the SubscriptionState. This refactors the ConsumerRebalanceListener code from ConsumerCoordinator for reuse in both places.
…ication event handler
|
@philipnee Can you add the |
…n-reconciliation
…OnPartitionsRevoked()
…sts for the consumer group protocol
…partitionsFor is implemented
|
@kirktrue The last build has compilation errors. Could you please check? |
Fixed. Oddly I couldn't get it to break locally until I re-sync'ed my fork and merged in |
|
Build failed because code couldn't be |
|
Build failed yet again because code couldn't be |
|
Closing and reopening due to Jenkins fussiness:
|
…allbacks (#14640) This patch adds the logic for coordinating the invocation of the `ConsumerRebalanceListener` callback invocations between the background thread (in `MembershipManagerImpl`) and the application thread (`AsyncKafkaConsumer`) and back again. It allowed us to enable more tests from `PlaintextConsumerTest` to exercise the code herein. Reviewers: David Jacot <djacot@confluent.io>
|
The failed tests are not related. Merged it to trunk and 3.7. |
…allbacks (apache#14640) This patch adds the logic for coordinating the invocation of the `ConsumerRebalanceListener` callback invocations between the background thread (in `MembershipManagerImpl`) and the application thread (`AsyncKafkaConsumer`) and back again. It allowed us to enable more tests from `PlaintextConsumerTest` to exercise the code herein. Reviewers: David Jacot <djacot@confluent.io>
…allbacks (apache#14640) This patch adds the logic for coordinating the invocation of the `ConsumerRebalanceListener` callback invocations between the background thread (in `MembershipManagerImpl`) and the application thread (`AsyncKafkaConsumer`) and back again. It allowed us to enable more tests from `PlaintextConsumerTest` to exercise the code herein. Reviewers: David Jacot <djacot@confluent.io>
…allbacks (apache#14640) This patch adds the logic for coordinating the invocation of the `ConsumerRebalanceListener` callback invocations between the background thread (in `MembershipManagerImpl`) and the application thread (`AsyncKafkaConsumer`) and back again. It allowed us to enable more tests from `PlaintextConsumerTest` to exercise the code herein. Reviewers: David Jacot <djacot@confluent.io>
…allbacks (apache#14640) This patch adds the logic for coordinating the invocation of the `ConsumerRebalanceListener` callback invocations between the background thread (in `MembershipManagerImpl`) and the application thread (`AsyncKafkaConsumer`) and back again. It allowed us to enable more tests from `PlaintextConsumerTest` to exercise the code herein. Reviewers: David Jacot <djacot@confluent.io>
Added logic for coordinating the invocation of the
ConsumerRebalanceListenercallback invocations between the background thread (inMembershipManagerImpl) and the application thread (AsyncKafkaConsumer) and back again.This allowed us to enable more tests from
PlaintextConsumerTestto exercise the code herein.