[Bug] Dispatcher will be closing and reopening when Key_shared consumers have different policies (AUTO_SPLIT/STICKY, allowOutOfOrderDelivery true/false) #23272
Labels
category/reliability
The function does not work properly in certain specific environments or failures. e.g. data lost
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
all released versions including master branch
Minimal reproduce step
The conclusion is currently based on the source code:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentSubscription.java
Lines 287 to 309 in 766d2a4
What did you expect to see?
When multiple consumers are using different policies, this should be properly handled.
One possibility is to keep the policy of the connected consumers and reject any other consumers and return a proper error message.
What did you see instead?
Based on the source code, it looks like the solution cannot work:
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: