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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to