-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(balance): sort and de-deplicate memberIDs
- 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
- Loading branch information
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters