jihoonson opened a new issue #6139: Race in 
KafkaSupervisorTest.testCheckpointForUnknownTaskGroup()
URL: https://github.com/apache/incubator-druid/issues/6139
 
 
   The stacktrace is:
   
   ```
   2018-08-10T00:03:11,557 ERROR [KafkaSupervisor-testDS] 
io.druid.indexing.kafka.supervisor.KafkaSupervisor - KafkaSupervisor[testDS] 
failed to handle notice: 
{class=io.druid.indexing.kafka.supervisor.KafkaSupervisor, exceptionType=class 
io.druid.java.util.common.ISE, exceptionMessage=WTH?! cannot find taskGroup [0] 
among all taskGroups [{}], noticeClass=CheckpointNotice}
   io.druid.java.util.common.ISE: WTH?! cannot find taskGroup [0] among all 
taskGroups [{}]
        at 
io.druid.indexing.kafka.supervisor.KafkaSupervisor$CheckpointNotice.isValidTaskGroup(KafkaSupervisor.java:686)
 ~[classes/:?]
        at 
io.druid.indexing.kafka.supervisor.KafkaSupervisor$CheckpointNotice.handle(KafkaSupervisor.java:638)
 ~[classes/:?]
        at 
io.druid.indexing.kafka.supervisor.KafkaSupervisor$2.run(KafkaSupervisor.java:363)
 [classes/:?]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[?:1.8.0_161]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_161]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_161]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_161]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
   ```
   
   The corresponding code is:
   
   ```java
   Assert.assertNotNull(serviceEmitter.getStackTrace());
   ```
   
   So, the issue is, `serviceEmitter.getStackTrace()` can return null when this 
check is called, so the test should wait for the stacktrace to be set.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to