You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/10/29 12:27:19 UTC
[GitHub] [druid] 599166320 opened a new issue, #13285: PrometheusEmitter has null pointer exception
599166320 opened a new issue, #13285:
URL: https://github.com/apache/druid/issues/13285
### Affected Version
All druid versions have this problem.
### Description
The `identifier` may be used before it has time to assign a value, resulting in null pointer exception.
The NullPointerException are as follows:
```
2022-10-29T06:06:38,547 ERROR [PrometheusPushGatewayEmitter-0] org.apache.druid.emitter.prometheus.PrometheusEmitter - Unable to flush prometheus metrics to pushGateway
java.lang.NullPointerException: null value in entry: druid=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33) ~[guava-16.0.1.jar:?]
at com.google.common.collect.SingletonImmutableBiMap.<init>(SingletonImmutableBiMap.java:39) ~[guava-16.0.1.jar:?]
at com.google.common.collect.ImmutableBiMap.of(ImmutableBiMap.java:57) ~[guava-16.0.1.jar:?]
at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:80) ~[guava-16.0.1.jar:?]
at org.apache.druid.emitter.prometheus.PrometheusEmitter.pushMetric(PrometheusEmitter.java:187) ~[?:?]
at org.apache.druid.emitter.prometheus.PrometheusEmitter.flush(PrometheusEmitter.java:199) ~[?:?]
at org.apache.druid.emitter.prometheus.PrometheusEmitter.lambda$start$0(PrometheusEmitter.java:102) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_301]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_301]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_301]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_301]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_301]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_301]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_301]
```
--
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@druid.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] FrankChen021 closed issue #13285: PrometheusEmitter has null pointer exception
Posted by GitBox <gi...@apache.org>.
FrankChen021 closed issue #13285: PrometheusEmitter has null pointer exception
URL: https://github.com/apache/druid/issues/13285
--
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@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org