Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

ThreadID persisted as -1 till OSMetricsCollector() has not run  #586

@khushbr

Description

@khushbr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions