2018-06-06 17:17:26 UTC - Sanjeev Kulkarni: @Sanjeev Kulkarni has joined the channel ---- 2018-06-06 17:17:52 UTC - Sanjeev Kulkarni: getting this stacktrace while trying to submitting functions ---- 2018-06-06 17:17:54 UTC - Sanjeev Kulkarni: 09:34:06.995 [FunctionActionerThread] INFO org.apache.pulsar.functions.worker.FunctionActioner - Function package file /tmp/ pulsar_functions/public/default/kafkasource/0/utils.jar.0.4f714650-2132-4c9c-afc3-ec3c8e0bfe12 will be downloaded from packag ePath: “public/default/kafkasource/da9a0037-99af-4989-87ff-c4d5fb17d188-core-0.0.1.jar”
09:34:09.204 [FunctionActionerThread] INFO org.apache.pulsar.functions.worker.FunctionActioner - Function package file is li nked from /tmp/pulsar_functions/public/default/kafkasource/0/utils.jar.0.4f714650-2132-4c9c-afc3-ec3c8e0bfe12 to /tmp/pulsar_ functions/public/default/kafkasource/0/utils.jar 09:34:09.211 [FunctionActionerThread] INFO org.apache.pulsar.functions.worker.FunctionActioner - Error starting function java.lang.NullPointerException: null at org.apache.pulsar.functions.worker.FunctionActioner.startFunction(FunctionActioner.java:131) ~[org.apache.pulsar-p ulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionActioner.lambda$new$0(FunctionActioner.java:78) ~[org.apache.pulsar-pul sar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151] 09:34:10.148 [qtp565168593-35] ERROR org.apache.pulsar.functions.worker.rest.api.FunctionsImpl - Got Exception Getting Status java.lang.NullPointerException: null at org.apache.pulsar.functions.proto.InstanceCommunication$FunctionStatus$Builder.setFailureException(InstanceCommunication.java:1994) ~[org.apache.pulsar-pulsar-functions-proto-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionRuntimeManager.getFunctionInstanceStatus(FunctionRuntimeManager.java:255) ~[org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionRuntimeManager.getAllFunctionStatus(FunctionRuntimeManager.java:318) ~[org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.rest.api.FunctionsImpl.getFunctionStatus(FunctionsImpl.java:387) [org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.rest.api.v2.FunctionApiV2Resource.getFunctionStatus(FunctionApiV2Resource.java:109) [org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151] ---- 2018-06-06 17:17:58 UTC - Sanjeev Kulkarni: this is happening in master ---- 2018-06-06 17:18:18 UTC - Matteo Merli: @Rajan Dhabalia ^^ ---- 2018-06-06 17:18:32 UTC - Sanjeev Kulkarni: probably related with <https://github.com/apache/incubator-pulsar/pull/1902> ---- 2018-06-06 17:49:56 UTC - Jerry Peng: @Jerry Peng has joined the channel ---- 2018-06-06 17:57:10 UTC - Sijie Guo: @Rajan Dhabalia are you looking into it? or shall we be looking into it? just try to avoid duplicated work in the community ---- 2018-06-06 17:58:36 UTC - Rajan Dhabalia: oh..let me check on it ---- 2018-06-06 18:06:15 UTC - Jerry Peng: cool thanks ---- 2018-06-06 18:31:52 UTC - Rajan Dhabalia: i found the issue.. after doing -ve testing for #1092, i missed to revert the change.. <https://github.com/apache/incubator-pulsar/pull/1925> right now, I don't see any unit-test case in `worker` module which touches any method of `FunctionActioner`.. so, working on adding unit-test for it.. ---- 2018-06-06 19:20:12 UTC - Rajan Dhabalia: added the unit-tests +1 : Matteo Merli, Sijie Guo, Jerry Peng ---- 2018-06-06 21:49:42 UTC - Sanjeev Kulkarni: @Rajan Dhabalia things are still broken ---- 2018-06-06 21:50:34 UTC - Sanjeev Kulkarni: 14:48:58.555 [FunctionActionerThread] INFO org.apache.pulsar.functions.worker.FunctionActioner - Function package file is li nked from /tmp/pulsar_functions/public/default/kafkasource/0/utils.jar.0.8d1a446d-f8fa-4e85-a2a2-7247af6ddd2f to /tmp/pulsar_ functions/public/default/kafkasource/0/utils.jar 14:48:58.565 [FunctionActionerThread] INFO org.apache.pulsar.functions.worker.FunctionActioner - Error starting function java.lang.NullPointerException: null at org.apache.pulsar.functions.worker.FunctionActioner.startFunction(FunctionActioner.java:132) ~[org.apache.pulsar-p ulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionActioner.lambda$new$0(FunctionActioner.java:78) ~[org.apache.pulsar-pul sar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151] 14:48:58.994 [qtp2141992087-32] ERROR org.apache.pulsar.functions.worker.rest.api.FunctionsImpl - Got Exception Getting Status java.lang.NullPointerException: null at org.apache.pulsar.functions.proto.InstanceCommunication$FunctionStatus$Builder.setFailureException(InstanceCommunication.java:1994) ~[org.apache.pulsar-pulsar-functions-proto-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionRuntimeManager.getFunctionInstanceStatus(FunctionRuntimeManager.java:255) ~[org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.FunctionRuntimeManager.getAllFunctionStatus(FunctionRuntimeManager.java:318) ~[org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.rest.api.FunctionsImpl.getFunctionStatus(FunctionsImpl.java:387) [org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at org.apache.pulsar.functions.worker.rest.api.v2.FunctionApiV2Resource.getFunctionStatus(FunctionApiV2Resource.java:109) [org.apache.pulsar-pulsar-functions-worker-2.1.0-incubating-SNAPSHOT.jar:2.1.0-incubating-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [org.glassfish.jersey.core-jersey-server-2.25.jar:?] ---- 2018-06-06 21:52:14 UTC - Sanjeev Kulkarni: the problem is this ---- 2018-06-06 21:52:15 UTC - Sanjeev Kulkarni: <https://github.com/apache/incubator-pulsar/blob/master/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/FunctionActioner.java#L113> ---- 2018-06-06 21:52:35 UTC - Sanjeev Kulkarni: pkgFile is init to null, while <https://github.com/apache/incubator-pulsar/blob/master/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/FunctionActioner.java#L121> does not really init it ---- 2018-06-06 21:52:48 UTC - Sanjeev Kulkarni: Hence the code fails with npe at <https://github.com/apache/incubator-pulsar/blob/master/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/FunctionActioner.java#L132> ---- 2018-06-06 22:03:13 UTC - Rajan Dhabalia: yes :disappointed: .. ---- 2018-06-06 22:12:19 UTC - Rajan Dhabalia: <https://github.com/apache/incubator-pulsar/pull/1927> ----