-
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
[fix][broker] Make deleteTopicPolicies
serialized is executed when close topic.
#15811
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ protected void setup() throws Exception { | |
conf.setTlsCertificateFilePath(TLS_SERVER_CERT_FILE_PATH); | ||
conf.setTlsKeyFilePath(TLS_SERVER_KEY_FILE_PATH); | ||
conf.setTlsAllowInsecureConnection(true); | ||
conf.setTopicLevelPoliciesEnabled(false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because TLS is not configured for the internal Pulsar client, we get an exception when we delete the topic policy. I'm wondering if we enable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mattisonchao Please open a new issue for this one. |
||
|
||
Set<String> superUserRoles = new HashSet<>(); | ||
superUserRoles.add("localhost"); | ||
|
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.
Why do we need to get the namespace policy first?
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.
We want to check if the namespace is marked as "deleted". This means the namespace is being deleted. We don't need to delete the topic policy anymore.
If we connect to the
deleted
namespace. we will get an error.