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 2020/05/21 06:09:28 UTC

[GitHub] [pulsar] cckellogg opened a new pull request #7008: Fix possible null pointer when getting instance metrics.

cckellogg opened a new pull request #7008:
URL: https://github.com/apache/pulsar/pull/7008


   Fix issue in the ThreadRuntime where the instance will throw a null pointer exception when asked for metrics.
   
   ```
   0521 04:13:50     INFO                         | "javaInstanceRunnable null=false" contextMap=map[] endOfBatch=false hostname=ckellogg-function-worker-0 loggerFqcn=org.apache.logging.slf4j.Log4jLogger loggerName=org.apache.pulsar.functions.runtime.thread.ThreadRuntime service=unknown thread=function-web-25-15 threadId=85 threadPriority=5 timeMillis=1.590034473373e+12 
   0521 04:13:50     INFO                         | "javaInstanceRunnable.getStats() null=true" contextMap=map[] endOfBatch=false hostname=ckellogg-function-worker-0 loggerFqcn=org.apache.logging.slf4j.Log4jLogger loggerName=org.apache.pulsar.functions.runtime.thread.ThreadRuntime service=unknown thread=function-web-25-15 threadId=85 threadPriority=5 timeMillis=1.590034473373e+12 
   0521 04:13:50     WARN                         | "[127.0.0.1] Failed to authenticate HTTP request: java.lang.NullPointerException" contextMap=map[] endOfBatch=false hostname=ckellogg-function-worker-0 loggerFqcn=org.apache.logging.slf4j.Log4jLogger loggerName=org.apache.pulsar.broker.web.AuthenticationFilter service=unknown thread=function-web-25-15 threadId=85 threadPriority=5 thrown="map[cause:map[commonElementCount:22 extendedStackTrace:java.lang.NullPointerException: null
   	at org.apache.pulsar.functions.runtime.thread.ThreadRuntime.getPrometheusMetrics(ThreadRuntime.java:181) ~[org.apache.pulsar-pulsar-functions-runtime-2.5.0-streamlio-3.jar:2.5.0-streamlio-3]
   	at org.apache.pulsar.functions.worker.FunctionsStatsGenerator.generate(FunctionsStatsGenerator.java:59) ~[org.apache.pulsar-pulsar-functions-worker-2.5.0-streamlio-3.jar:2.5.0-streamlio-3]
   	at org.apache.pulsar.functions.worker.rest.api.FunctionsMetricsResource.getMetrics(FunctionsMetricsResource.java:47) ~[org.apache.pulsar-pulsar-functions-worker-2.5.0-streamlio-3.jar:2.5.0-streamlio-3]
   	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
   	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
   	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
   	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
   
   ``` 
   


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

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



[GitHub] [pulsar] cckellogg closed pull request #7008: Fix possible null pointer when getting instance metrics.

Posted by GitBox <gi...@apache.org>.
cckellogg closed pull request #7008:
URL: https://github.com/apache/pulsar/pull/7008


   


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

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



[GitHub] [pulsar] cckellogg commented on pull request #7008: Fix possible null pointer when getting instance metrics.

Posted by GitBox <gi...@apache.org>.
cckellogg commented on pull request #7008:
URL: https://github.com/apache/pulsar/pull/7008#issuecomment-632152938


   Being fixed in another PR #7010 


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

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