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 2021/12/16 08:49:25 UTC

[GitHub] [pulsar] eolivelli opened a new issue #13358: Functions: NullPointerException in FunctionStatsManager.reset

eolivelli opened a new issue #13358:
URL: https://github.com/apache/pulsar/issues/13358


   **Describe the bug**
   I have seen this NPE in FunctionStatsManager.reset.
   Probably it is a race while the function is still starting and it receives a "reset" request
   
   **To Reproduce**
   It is hard to reproduce it manually.
   
   **Expected behavior**
   No error
   
   **Screenshots**
   ```
   16:55:26.404 [function-timer-thread-6-1] ERROR org.apache.pulsar.functions.instance.stats.ComponentStatsManager - Failed to reset metrics for 1min window
   java.lang.NullPointerException: null
       at org.apache.pulsar.functions.instance.stats.FunctionStatsManager.reset(FunctionStatsManager.java:425) ~[com.datastax.oss-pulsar-functions-instance-2.7.2.1.1.21.jar:2.7.2.1.1.21]
       at org.apache.pulsar.functions.instance.stats.ComponentStatsManager.lambda$new$0(ComponentStatsManager.java:81) ~[com.datastax.oss-pulsar-functions-instance-2.7.2.1.1.21.jar:2.7.2.1.1.21]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
       at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [java-instance.jar:?]
       at java.lang.Thread.run(Thread.java:829) [?:?]
   ```
   
   **Envrironment (please complete the following information):**
   Pulsar 2.7.2 (actually Luna Streaming fork 2.7.2.1.1.21, but the code is the same as in Pulsar 2.7.2)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] github-actions[bot] commented on issue #13358: Functions: NullPointerException in FunctionStatsManager.reset

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13358:
URL: https://github.com/apache/pulsar/issues/13358#issuecomment-1051438749


   The issue had no activity for 30 days, mark with Stale label.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org