You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In Key_Shared subscription with stickyHashRange allow hashes in between #7217
Is your feature request related to a problem? Please describe.
In Key_Shared subscription using stickyHashRange, consumers interleaving hashes are not allowed. For example, consumer 1 hash: [[0, 99], [400, 65535]], consumer 2 hash: [[100,399]].
throws an exception, Range conflict with consumer from here.
This does not allow us to use better hashing techniques ex: consistent hashing.
Is this a necessary check?
Describe the solution you'd like
Avoid the check if this is not necessary.
Additional context
I am not sure if this is a feature or a bug. Reporting as a feature, please feel free to change accordingly.
To reproduce the error, you can create two consumers with
@AnkushKhanna I think you have identified the problem. It would be great if you can send out a pull request to fix the problem and add some tests to cover this corner cases.
Activity
sijie commentedon Jun 10, 2020
@AnkushKhanna This sounds like a bug. Thank you for reporting the issue.
AnkushKhanna commentedon Jun 10, 2020
I would love to contribute. Let me know if I can help.
sijie commentedon Jun 10, 2020
@AnkushKhanna I think you have identified the problem. It would be great if you can send out a pull request to fix the problem and add some tests to cover this corner cases.