Repository navigation
fix(store): serialize usage checkpoint DDL - #718
Merged
Merged
Conversation
Co-authored-by: gajesh <gajesh@eigenlabs.org>
Co-authored-by: gajesh <gajesh@eigenlabs.org>
Co-authored-by: gajesh <gajesh@eigenlabs.org>
Keep checkpoint creation behind the migration advisory lock so concurrent coordinator starts cannot race in PostgreSQL's catalogs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Resolve the post-#665 branch update by retaining only the serialized checkpoint DDL fix and its regression coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Gajesh2007
had a problem deploying
to
benchmarks
August 25, 2026 06:01 — with
GitHub Actions
Failure
4 tasks
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
usage_totals_backfill_statecreation out of the unconditional startup statement listFollow-up to #665. The accounting state machine is unchanged; this closes the concurrent-start race found during its release review.
Before
flowchart LR subgraph Behavior B1[Concurrent coordinator starts] --> B2[Both create checkpoint table] B2 --> B3[PostgreSQL catalog uniqueness race] B3 --> B4[One coordinator fails startup] end subgraph Code C1[PostgresStore migrate loop] --> C2[CREATE TABLE IF NOT EXISTS] C2 --> C3[Later acquire advisory lock] endAfter
flowchart LR subgraph Behavior B1[Concurrent coordinator starts] --> B2[One acquires migration lock] B2 --> B3[Checkpoint table created once] B3 --> B4[Other starts observe completed DDL] end subgraph Code C1[migrateUsageTotals] --> C2[Acquire advisory lock] C2 --> C3[CREATE TABLE IF NOT EXISTS] C3 --> C4[Run migration state machine] endTest plan
coordinator/storesuite against isolated PostgreSQL 16go test ./... -count=1)