Skip to content

SegmentStatusChecker emits incorrect percentsegmentsavailable metrics #17446

@shuturmurgh

Description

@shuturmurgh
  • SegmentStatusChecker periodic task occasionally emits incorrect percentsegmentsavailable metric by marking segments as OFFLINE when they have already transitioned to CONSUMING state.
  • This issue has only been observed for large tables (40k-100k segments)
  • No signs of ZK replica lag or memory bottleneck
  • Increasing controller.statuschecker.waitForPushTimePeriod from 10min (default) to 20 min hasn't resolved the issue since the lag can be over 30 mins which is unacceptable

Example Timeline

Timestamp Component Event
02:45:57 Broker Received new segment table__28__2014__20251207T2115Z via EV update
02:46:12 Server Segment transitioned OFFLINE → CONSUMING
03:13:50 Controller SegmentStatusChecker reports segment has no ONLINE/CONSUMING replica

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