Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(balance): sort and de-deplicate memberIDs #2285

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

dnwe
Copy link
Collaborator

@dnwe dnwe commented Jul 20, 2022

  • remove balanceStrategySortable as:
    • it wasn't obviously being used (as the sort.Sort was called in a
      range closure over a map without updating the map value
    • it had implemented a hashing scheme over topic+memberID which didn't
      seem obviously superior to just using sort.StringSlice
  • de-duplicate memberIDs from the consumer group metadata to avoid
    incorrectly counting a given member multiple times in the assignment

- remove balanceStrategySortable as:
  - it wasn't obviously being used (as the sort.Sort was called in a
    range closure over a map without updating the map value
  - it had implemented a hashing scheme over topic+memberID which didn't
    seem obviously superior to just using sort.StringSlice
- de-duplicate memberIDs from the consumer group metadata to avoid
  incorrectly counting a given member multiple times in the assignment
@dnwe dnwe force-pushed the dnwe/de-duplicate-balance-strategy branch from 320fada to 6750d92 Compare July 20, 2022 14:22
@dnwe dnwe added the fix label Jul 20, 2022
@dnwe dnwe merged commit bd9d8f1 into main Jul 20, 2022
@dnwe dnwe deleted the dnwe/de-duplicate-balance-strategy branch July 20, 2022 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant