-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Revert #16603 "[enh] Broker - Shared subscription: run filters in a separate (per-subscription) thread" #16803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert #16603 "[enh] Broker - Shared subscription: run filters in a separate (per-subscription) thread" #16803
Conversation
… (per-subscription) thread (dispatcherDispatchMessagesInSubscriptionThread) (apache#16603)" Fixes apache#16802 This reverts commit abe5d15.
|
Instead of reverting, can we change the default to false? |
|
@eolivelli Just have a private discussion with @mattisonchao, he also suggested only changing the default value. However, IMO, keeping this option could still bring some potential risks. We have to note that if you're enabling this option, duplicated messages might be received. At the time, there is something wrong with this implementation. I think we should revert the implementation and only add it again after fixing the bug. |
|
@eolivelli I think we can change to false first and you can continue to check the details of this issue. If the issue cannot be resolved before the 2.11.0 release, we should revert this one. Because after users enable this option, they will get duplicated messages. @BewareMyPower Could you please open a separate PR to change the default value to false? Just keep this one to track if we need revert or not. |
@BewareMyPower Hi, @eolivelli |
|
I agree. Let's keep this PR open and I'll push another PR to disable the option. |
### Motivation See apache#16802 and the discussion in apache#16803. Before reverting apache#16603, disabling the `dispatcherDispatchMessagesInSubscriptionThread` option first. ### Modifications Change the default value of `dispatcherDispatchMessagesInSubscriptionThread` to false.
|
@mattisonchao @BewareMyPower @codelipenghui |
|
Close it due to #16812 |
Fixes #16802
Motivation
We should not run
sendMessagesToConsumersin a separated thread. If the execute order isThe replay queue would be read repeatedly.
Modifications
Revert #16603.
Documentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)