You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/01/15 15:12:57 UTC

[GitHub] sijie commented on a change in pull request #3365: create_topic_with_check_namespaces_cluster

sijie commented on a change in pull request #3365: create_topic_with_check_namespaces_cluster
URL: https://github.com/apache/pulsar/pull/3365#discussion_r247930681
 
 

 ##########
 File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java
 ##########
 @@ -234,6 +234,14 @@ protected void validateNamespaceName(String property, String namespace) {
         }
     }
 
+    protected void validateGlobalNamespaceOwnership(String property, String namespace) {
+        try {
+            this.namespaceName = NamespaceName.get(property, namespace);
+            validateGlobalNamespaceOwnership(this.namespaceName);
+        } catch (RestException re) {
 
 Review comment:
   @foreversunyao : it seems that we almost do nothing here than just re-throwing the exception. so do we really need this try-catch block here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services