Skip to content

fix(batch): admit one row per owner at a time in the record drain - #24506

Merged
Git-on-my-level merged 1 commit into
mainfrom
lead/drain-owner-skip
Nov 3, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lead/drain-owner-skip

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Requested by David

Outage follow-up to #24494 and #24500. Every admission rewrites the owner's scheduler row (owners/<key>). The backlog is about 8 rows per owner on average, so local drain workers often admit the same owner's rows at once and exhaust each other's contention retries. After #24500, FirestoreContentionExhausted was still about 100 a minute and the backlog fell only about 17 rows a minute (13:00Z).

This skips a row whose owner is already being admitted on this replica. The row stays due for the next pass and is not deferred.

Shipped under David's break-glass instruction for this outage (12:17Z: ship without waiting for CI).

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

Every admission rewrites the owner's scheduler row (owners/<key>), so local
drain workers admitting the same owner's rows exhaust each other's contention
retries. After #24500, FirestoreContentionExhausted was still about 100 a
minute and the backlog fell only about 17 rows a minute (13:00Z). Skip a row
whose owner is already being admitted on this replica; it stays due for the
next pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-03T13:02:36.165590Z
We couldn’t complete this review. Comment @codex review to try again.
7f82c5e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level
Git-on-my-level merged commit 2f33798 into main Nov 3, 2026
60 of 62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lead/drain-owner-skip branch November 3, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant