AntonVasant opened a new pull request, #21013:
URL: https://github.com/apache/kafka/pull/21013
This PR fixes an issue in GroupMetadataManager#maybeUpdateRegularExpressions
where a member’s regex subscription transition from non-empty → empty did not
trigger a group epoch bump.
The method previously returned REGEX_UPDATED, which does not cause
consumerGroupHeartbeat to increment the group epoch.
Fix
The patch updates the logic to return:
REGEX_UPDATED_AND_RESOLVED
when:
the updated regex subscription text is empty, and
the previous subscription was non-empty.
This ensures that consumerGroupHeartbeat correctly bumps the group epoch,
keeping the group metadata consistent.
Tests
Several tests were updated to align with the corrected behavior.
Tests that previously expected no epoch bump were failing, and have now been
adjusted to expect the new, correct logic.
JIRA
https://issues.apache.org/jira/browse/KAFKA-19891
Impact
Fixes coordinator state correctness for regex-subscribing consumer groups
Ensures group epoch bumps happen for all relevant subscription transitions
Backward compatible
No public API changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]