KAFKA-7000: update assignment in Consumer#position#5142
KAFKA-7000: update assignment in Consumer#position#5142vvcephei wants to merge 2 commits intoapache:trunkfrom vvcephei:KAFKA-7000-update-assignment-in-position
Conversation
|
@guozhangwang @hachikuji , It's the root cause of #5107 failing system tests. |
|
I've synced with @vvcephei that leads to this JIRA. Compared with |
|
Test results were gone by the time I checked... |
|
The failing test is a result of this change: The test calls I have verified that the exact same thing happens if you call Thoughts, @guozhangwang ? |
|
I have updated the test to avoid the recursion. I think the test still evaluates the same condition, namely that the commit occurs and succeeds. |
|
Note to self: This will need a cherry-pick PR to 2.0 branch. |
|
SUCCESS |
|
Jenkins is acting wacky. Both the builds passed. |
|
After some discussion with @guozhangwang, it seems like this isn't desirable after all. Our use case was to subscribe and then ask for position without ever polling. In actuality, we could make do by asking for the committed offsets, which are provided by both the Consumer and the AdminClient. We went with the AdminClient. |
Call
ConsumerCoordinator.pollinConsumer.positionto ensure we haveupdated assignment metadata before potentially throwing an exception regarding
our assignment.
Committer Checklist (excluded from commit message)