Skip to content

/flush call on Cortex Blocks can result in overlapping blocks #3348

@codesome

Description

@codesome

Describe the bug

/flush call on blocks based ingesters can cause creation of overlapping blocks.

This is because we call CompactHead for the entire Head block range which includes the valid time for samples to be ingested where TSDB doesn't safeguard much, hence some samples can slip in overlapping with the block being created parallely in the /flush call.

More info is in this issue prometheus/prometheus#8055

Storage Engine

  • Blocks
  • Chunks

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