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/03 04:52:36 UTC

[GitHub] rdhabalia opened a new pull request #2704: Fix: invalid function-java-instance proto args

rdhabalia opened a new pull request #2704: Fix: invalid function-java-instance proto args
URL: https://github.com/apache/pulsar/pull/2704
 
 
   ### Motivation
   
   Right now, with change in #1950, function-worker invokes java-instance process with invalid argument with invalid proto-format therefore, java-instance process fail with below exception
   ```
   Exception in thread "main" org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.InvalidProtocolBufferException: Expect message object but got: "{\"tenant\":\"test\",\"namespace\":\"test-namespace\",\"name\":\"example\",\"className\":\"org.apache.pulsar.functions.api.examples.ExclamationFunction\",\"userConfig\":\"{\"PublishTopic\":\"test_result\"}\",\"autoAck\":true,\"parallelism\":1,\"source\":{\"typeClassName\":\"java.lang.String\",\"inputSpecs\":{\"test_src\":{}}},\"sink\":{\"topic\":\"test_result\",\"typeClassName\":\"java.lang.String\"},\"resources\":{}}"
   	at org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.mergeMessage(JsonFormat.java:1296)
   	at org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1273)
   	at org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1155)
   	at org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$Parser.merge(JsonFormat.java:338)
   	at org.apache.pulsar.functions.runtime.JavaInstanceMain.start(JavaInstanceMain.java:114)
   	at org.apache.pulsar.functions.runtime.JavaInstanceMain.main(JavaInstanceMain.java:186)
   ```
   
   ### Modifications
   
   correct the java-args so, java-function-instance can start successfully.
   
   

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