Skip to content

fix(operations): bound direct database waits - #20

Merged
GQAdonis merged 1 commit into
mainfrom
codex/bound-operation-query-deadlines
Sep 21, 2026
Merged

GQAdonis merged 1 commit into
mainfrom
codex/bound-operation-query-deadlines

Conversation

@GQAdonis

Copy link
Copy Markdown
Contributor

The durable operation coordinator called the SurrealDB client directly, so a database future could remain pending outside the storage operation deadline while health endpoints stayed green. This applies the configured query timeout to every direct ledger database future and reports the failed stage, while leaving embedding executor work under its existing watchdog.

Validation:

  • openspec validate bound-operation-query-deadlines --strict
  • RUSTC_WRAPPER= cargo check --locked --package surreal-memory-server --no-default-features --features server-only
  • RUSTC_WRAPPER= cargo test --locked --test operation_query_deadline --no-default-features --features server-only (1 passed)
  • RUSTC_WRAPPER= cargo test --locked --test executor_recovery (4 passed)

Review: isolated critic round 1 found the recovery assertion used a second coordinator; fixed. Round 2 found a fixture race; fixed by seeding the terminal receipt before starting the coordinator. The two-round review cap prevented a third review, and the repaired server-mode regression passed.

@GQAdonis
GQAdonis merged commit b000bce into main Sep 21, 2026
1 check failed
@GQAdonis
GQAdonis deleted the codex/bound-operation-query-deadlines branch September 21, 2026 03:40
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