Keep every row the analytics write buffers accept

This removes the analytics_write_buffer_protection flag confirmed the removal can go ahead under the Bulkhead hold on flag removals (hold, confirmation).

Merge order: merge only after MR 1 (!273892 (merged)) is live on GitLab.com and the write buffer depth alert exists.

What does this MR do and why?

Analytics::DatabaseWriteBuffer and ClickHouse::WriteBuffer no longer drop rows once a buffer reaches MAX_PENDING. Both buffers now enqueue every row even when their depth exceeds MAX_PENDING.

  • MAX_PENDING stays. It is now the buffer capacity that MR 1's admission check is measured against.
  • The analytics_write_buffer_protection flag gated only the drop, so its definition and spec stubs are removed.
  • The gitlab_database_write_buffer_dropped_total and gitlab_clickhouse_write_buffer_dropped_total metric series are removed, because neither buffer drops rows at enqueue time.
Why this waits for MR 1

Without the drop, nothing bounds how far a buffer can grow. MR 1 rejects new events with a 429 before a buffer fills, so this MR goes in only once that check is live.

References

Screenshots or screen recordings

Not applicable: no UI change.

How to set up and validate locally

No user-facing change.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Chandra Saripaka

Merge request reports

Loading
Loading