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
Consumer cannot consume messages when key_shared mode and subscriptionKeySharedUseConsistentHashing #10750
Describe the bug
Key_shared mode is configured as ConsistentHashingStickyKeyConsumerSelector, When I use three consumers with the same consumerName, if one consumer is closed, the other two consumers will no longer be able to consume messages.
changed the title [-]Consumer cannot consume messages when key_shared mode [/-][+]Consumer cannot consume messages when key_shared mode and ConsistentHashingStickyKeyConsumerSelector[/+]on Jan 27, 2022
changed the title [-]Consumer cannot consume messages when key_shared mode and ConsistentHashingStickyKeyConsumerSelector[/-][+]Consumer cannot consume messages when key_shared mode and subscriptionKeySharedUseConsistentHashing[/+]on Jan 27, 2022
Activity
[-]Consumer cannot consume messages when key_shared mode [/-][+]Consumer cannot consume messages when key_shared mode and ConsistentHashingStickyKeyConsumerSelector[/+]lhotari commentedon Jan 27, 2022
Perhaps this is related to #13965 ?
[-]Consumer cannot consume messages when key_shared mode and ConsistentHashingStickyKeyConsumerSelector[/-][+]Consumer cannot consume messages when key_shared mode and subscriptionKeySharedUseConsistentHashing[/+]merlimat commentedon Jan 27, 2022
@sourcelliu @lhotari
No, it's not related to that (and #13965 is just a test issue, not a code issue).
The consumer name is expected to be unique (eg: if you don't pass one, it will be auto-generated).
Having said that, the check here is wrong, as we should compare the consumer instance and not just the name.
Fixed handling of consumers with equal names on on key shared selecto…
Fixed handling of consumers with equal names on on key shared selecto…
Fixed handling of consumers with equal names on on key shared selecto…