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/06/07 21:40:32 UTC
[GitHub] srkukarni commented on a change in pull request #1845: Functions
schema integration
srkukarni commented on a change in pull request #1845: Functions schema integration
URL: https://github.com/apache/incubator-pulsar/pull/1845#discussion_r193897401
##########
File path: pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstance.java
##########
@@ -67,6 +69,13 @@ public JavaInstance(InstanceConfig config, Object userClassObject,
}
public JavaExecutionResult handleMessage(MessageId messageId, String topicName, Object input) {
+ if (source instanceof PulsarSource) {
Review comment:
This is actually instantiating a context object per message. I think that should be avoided.
----------------------------------------------------------------
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