[Bug] ConsistentHashingStickyKeyConsumerSelector's getConsumerKeyHashRanges doesn't return correct results #23321
Closed
2 of 3 tasks
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
all versions
Minimal reproduce step
After the last entry in the hash ring, it wraps around to the first entry:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ConsistentHashingStickyKeyConsumerSelector.java
Lines 123 to 125 in 7e73967
This is ignored in the getConsumerKeyHashRanges method:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ConsistentHashingStickyKeyConsumerSelector.java
Lines 138 to 145 in 7e73967
Another problem is that the rule to pick one consumer when there are hash collisions is also ignored:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ConsistentHashingStickyKeyConsumerSelector.java
Line 127 in 7e73967
What did you expect to see?
the results returned by the getConsumerKeyHashRanges should be accurate and correct
What did you see instead?
the getConsumerKeyHashRanges logic
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: