Skip to content

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

@sojadhav

Description

@sojadhav

We have integrated embedded client of olric and we are seeing "not enough room to distribute partitions" error

Config:
PartitionCount: 2
MemberCount: 4
Load Factor: 1.25

Can we add some validation in olric lib to make sure PartitionCount > MemberCount to avoid panics ?

When PartitionCount < MemberCount, no matter what loadFactor you set, you will always get above error

I am not sure if this should be fixed in https://github.com/buraksezer/consistent/blob/master/consistent.go#L180 or if validation should be added in olric to avoid misconfiguration. 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions