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 2021/01/07 09:06:20 UTC

[GitHub] [pulsar] eolivelli commented on a change in pull request #9131: Issue 9130: Pulsar-admin sinks create: bad error message "java.lang.NullPointerException: path is 'null'." in case of missing "--name" parameter

eolivelli commented on a change in pull request #9131:
URL: https://github.com/apache/pulsar/pull/9131#discussion_r553194788



##########
File path: pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/SinksImpl.java
##########
@@ -232,6 +233,10 @@ public void createSink(SinkConfig sinkConfig, String fileName) throws PulsarAdmi
     @Override
     public CompletableFuture<Void> createSinkAsync(SinkConfig sinkConfig, String fileName) {
         final CompletableFuture<Void> future = new CompletableFuture<>();
+        if (StringUtils.isBlank(sinkConfig.getName())) {

Review comment:
       @sijie I have added validation for all of the methods in SinksImpl for sinkname, namespace and tenant.
   PTAL




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org