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 2018/10/10 01:07:43 UTC

[GitHub] srkukarni commented on a change in pull request #2756: Do not create any producer if the output type of a function is void

srkukarni commented on a change in pull request #2756: Do not create any producer if the output type of a function is void
URL: https://github.com/apache/pulsar/pull/2756#discussion_r223910364
 
 

 ##########
 File path: pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/sink/PulsarSink.java
 ##########
 @@ -235,6 +239,7 @@ public void open(Map<String, Object> config, SinkContext sinkContext) throws Exc
 
     @Override
     public void write(Record<T> record) throws Exception {
+        if (record == null) return;
 
 Review comment:
   I think the JavaInstanceRunnable is probably a better check.

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