-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
PIP-34 Add flag to enable or disable Key_Shared subscription. #4120
PIP-34 Add flag to enable or disable Key_Shared subscription. #4120
Conversation
conf/broker.conf
Outdated
@@ -107,6 +107,9 @@ subscriptionRedeliveryTrackerEnabled=true | |||
# How frequently to proactively check and purge expired subscription | |||
subscriptionExpiryCheckIntervalInMinutes=5 | |||
|
|||
# Enable Key_Shared subscription (default is disabled) | |||
subscriptionKeySharedEnable=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just meaning to have it enabled by default (with an option to disable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabled it by default and add a unit test to ensure disable is work well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for adding it.
@@ -150,6 +150,8 @@ In *Key_Shared* mode, multiple consumers can attach to the same subscription. Me | |||
|
|||
![Key_Shared subscriptions](assets/pulsar-key-shared-subscriptions.png) | |||
|
|||
**Key_Shared subscription is a beta feature. You can disable it at broker.config.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codelipenghui shouldn't this be "You can enable it"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sijie Key_shared subscription is enabled by default. so i think we need to tell users can disable it at broker.config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a comments above to enable it by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. sorry I missed that.
Motivation
Add a broker level flag to enable or disable Key_Shared subscription, disabled by default.
Modifications
Add a flag named
subscriptionRedeliveryTrackerEnabled
Add documentation to describe Key_Shared subscription is a beta feature.
Verifying this change
This change is already covered by existing tests
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation