Skip to content

Unshipped blocks when out of order writes are enabled #5402

Closed
@AmerSelimovic

Description

@AmerSelimovic

Describe the bug

Unshipped blocks are shown in the cortex_ingester_oldest_unshipped_block_timestamp_seconds metric and are also visible in the ingester storage when out of order writes are enabled with the configuration introduced in #4964. Blocks are accumulating on the ingester as long as the config is set.

To Reproduce

  1. Start Cortex 1.15.2
  2. Allow out of order writes using newly introduced configuration parameters introduced in Support out of order samples ingestion #4964
  3. Perform Write operations

Expected behavior

Expecting to see no unshipped blocks on the ingester and have the metric cortex_ingester_oldest_unshipped_block_timestamp_seconds at value 0.

Environment

  • Infrastructure: Kubernetes

  • Deployment tool: Helm

  • Cortex version 1.15.2

  • Chart version 2.1.0

Additional Context

Tested with following two combinations of configurations and they produced the same result.

out_of_order_time_window: 30m
out_of_order_cap_max: 32

and

out_of_order_time_window: 30m
out_of_order_cap_max: 32
skip_blocks_with_out_of_order_chunks_enabled: true

Metrics:

cortex_ingester_shipper_uploads_total shows that block uploads are being done
cortex_ingester_shipper_upload_failures_total does not show any failures
cortex_compactor_runs_completed_total shows that compactions are being done
cortex_compactor_runs_failed_total shows no failed compactions

Logs:

There are no errors in Cortex component logs.
Only logs that could point to something are ingester logs regarding blocks overlapping, for example

caller=compact.go:698 org_id=fake msg="Found overlapping blocks during compaction" ulid=01H2SSZF807FMM2FD52HFGA3N7

Alerts:

CortexIngesterHasUnshippedBlocks alert from cortex-jsonnet is triggered as there are unshipped blocks available.

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