performance-analyzer-rca
performance-analyzer-rca copied to clipboard
ThreadID persisted as -1 till OSMetricsCollector() has not run
OSMetricsCollector#collectMetrics() is responsible for persisting Thread related info in 'jTidMap'
In case the 'jTidMap' has not been updated and threadState is null, we return -1 when getNativeThreadId() is invoked.
We need to fix this to ensure we do not emit threadID as -1
1616723515000.tmp:^threads/-1/shardbulk/29/finish
1616723515000.tmp:^threads/-1/shardbulk/30/finish
1616723515000.tmp:^threads/22259/shardbulk/44/start
1616723515000.tmp:^threads/22258/shardbulk/45/start
1616723515000.tmp:^threads/22259/shardbulk/46/start
1616723515000.tmp:^threads/22258/shardbulk/47/start
1616723515000.tmp:^threads/22259/shardbulk/46/finish
1616723515000.tmp:^threads/22258/shardbulk/47/finish