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_PENDINGstays. It is now the buffer capacity that MR 1's admission check is measured against.- The
analytics_write_buffer_protectionflag gated only the drop, so its definition and spec stubs are removed. - The
gitlab_database_write_buffer_dropped_totalandgitlab_clickhouse_write_buffer_dropped_totalmetric 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
- https://gitlab.com/gitlab-org/gitlab/-/issues/642123
- MR 1: !273892 (merged)
- Bulkhead flag-removal hold: https://gitlab.com/groups/gitlab-org/-/work_items/24176#note_4246496519
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.