Skip to content

config: validate partition count against member count to prevent distribution errors - #290

Open
AdamMagued wants to merge 1 commit into
olric-data:masterfrom
AdamMagued:fix-issue-277-partition-member-validation
Open

AdamMagued wants to merge 1 commit into
olric-data:masterfrom
AdamMagued:fix-issue-277-partition-member-validation

Conversation

@AdamMagued

Copy link
Copy Markdown

When PartitionCount is configured smaller than MemberCount, the consistent hash ring cannot distribute partitions across all cluster members, resulting in a runtime error ("not enough room to distribute partitions").

This change validates that PartitionCount is greater than or equal to MemberCount during config validation, providing an immediate descriptive error on invalid configurations.

Fixes #277

…ribution errors

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
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.

PartitionCount less than memberCount throws "not enough room to distribute partitions"

1 participant