Skip to content

Commit

Permalink
Merge pull request #30 from sweet-security/0.1.9
Browse files Browse the repository at this point in the history
0.1.9
  • Loading branch information
TsurEdoe authored Oct 13, 2024
2 parents 77aeb82 + 94418f9 commit 0c9ee0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sweet-security/kafkas",
"version": "0.1.8",
"version": "0.1.9",
"description": "An kafkajs decorator with cooperative sticky assigner support",
"main": "index.js",
"types": "types/index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/consumer/assigners/cooperativeStickyAssigner/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ const getMemberIdToAssignPartitionTo = (members, assignment, topicWithMostUnassi
// Amongst the members with the least assigned partitions, find the one with the least amount of partitions assigned to it from the topic with most unassigned partitions
return minBy(
membersByAssignedPartitionsCount[leastAssignedPartitionsCount],
member => assignment[member.memberId][topicWithMostUnassignedPartitions].length
)
member => assignment[member.memberId][topicWithMostUnassignedPartitions]?.length ?? 0 )
}

const unloadOverloadedMembers = (assignment, avgPartitions) => {
Expand Down

0 comments on commit 0c9ee0e

Please sign in to comment.