poorbarcode opened a new pull request, #25551: URL: https://github.com/apache/pulsar/pull/25551
### Motivation Before https://github.com/apache/pulsar/pull/24860, the namespace-level policy: `replication_clusters` will never be empty; after https://github.com/apache/pulsar/pull/24860, it will be empty if a namespace is created with the following request ``` curl -x PUT http://localhost:50025/admin/v2/namespaces/{tenant}/{namespace}` -D `{"allowed_clusters": ["{current_cluster}"]}` ``` This will lead to some unexpected problems, such as the namespace not being able to be deleted normally and getting an error `Failed to delete namespace {namespace} java.util.concurrent.CompletionException: org.apache.pulsar.broker.web.RestException: Cannot delete the global namespace {namespace}. There are still more than one replication cluster configured.` ### Modifications Recover the default behaviour that was defined before https://github.com/apache/pulsar/pull/24860 ### Does this pull request potentially affect one of the following parts: - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
