Skip to content

Concurrency bug in DruidSchema.refreshSegmentsForDataSource() #6826

@leventov

Description

@leventov

segmentMap is created outside of lock, so by the time of SegmentMetadataHolder holder = dataSourceSegments.get(segment); segment could be already removed. It could cause NPE below.

FYI @surekhasaharan @gianm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions