rdhabalia commented on a change in pull request #2421: Fix bug during user publish URL: https://github.com/apache/incubator-pulsar/pull/2421#discussion_r211787361
########## File path: pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/ContextImpl.java ########## @@ -269,9 +269,11 @@ public ByteBuffer getState(String key) { if (producer == null) { try { - Producer<O> newProducer = ((ProducerBuilderImpl<O>) producerBuilder.clone()).schema(schema).create(); + Producer<O> newProducer = ((ProducerBuilderImpl<O>) producerBuilder.clone()) Review comment: can we please add unit-test here which covers this path. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services