Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alexander-falca
Copy link
Member

Description

This PR removes filtering for EMPTY consumer groups.

Motivation and Context

Kafka consumers using consumer.assign() method for consuming will be reported as empty consumer groups. We also need to continue reporting offsets when all members of the consumer group left(due to restarts, connectivity issues or any other event).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@alexander-falca alexander-falca requested a review from amuraru March 23, 2022 03:33
groupIDs := make([]string, len(groupsRes.AllowedGroups.Groups))
for i, group := range groupsRes.AllowedGroups.Groups {
if group.GroupState != "Empty" && group.GroupState != "Dead" {
if group.GroupState != "Dead" {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are Smarts groups right? where members join the group only commiting offsets and else the group remains empty right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, Smarts is one example here

@alexander-falca alexander-falca merged commit 7ed4955 into adobe:master Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants