Skip to content

Segment 'Online' but not properly sealed (no segment file created) #13149

@cbalci

Description

@cbalci

We observed this interesting behavior from a Realtime table. For a single segment, something apparently went wrong at commit time that the server wasn't able to commit the segment to disk and remove files under 'consumers'. However the ingestion continued without an issue and the server has been consuming and sealing segments since then just fine.

At this point this segment:

  • Shows 'Online' in ZK metadata (not 'Consuming')
  • Server has three preallocated files under consumers/, which are still memory mapped
  • No compressed (.tar.gz) segment file on disk
  • Some error logs from RealtimeSegmentValidationManager (controller) which attempted to upload segment files to deep store but failed. (Unfortunately segment build time logs from the server are lost due to retention)

My two questions are:

  • How is it possible for a segment to get stuck in this limbo state where it finished consumption, but wasn't properly sealed?
  • Having the preallocated 'consumer' files, is there a practical way to rerun the commit routine and create the segment files after the fact?

cc @chenboat @eaugene

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions