Skip to content

direct: remove the WAL Open created when its header cannot be written - #6363

Open
denik wants to merge 1 commit into
mainfrom
denik/dstate-wal-header-cleanup
Open

direct: remove the WAL Open created when its header cannot be written#6363
denik wants to merge 1 commit into
mainfrom
denik/dstate-wal-header-cleanup

Conversation

@denik

@denik denik commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #6330.

If writing the WAL header fails, Open leaves behind the file it just created. O_EXCL means the file is ours and a WAL without a header carries nothing to recover, but leaving it makes every later open fail: on the header parse with recovery, and on the unexpected WAL file without it.

O_EXCL means the file is ours and a WAL without a header carries nothing to
recover, but leaving it made every later open fail: on the header parse with
recovery, and on the unexpected WAL file without it.

Co-authored-by: Isaac
@github-actions

Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @shreyas-goenka -- recent work in bundle/direct/dstate/
  • @andrewnester -- recent work in bundle/direct/dstate/

Eligible reviewers: @anton-107, @janniklasrose, @lennartkats-db, @pietern

Suggestions based on git history. See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 43dc964

Run: 32727565740

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 1 4 274 1167 8:51
💚​ aws windows 1 4 276 1165 7:05
🔄​ azure linux 1 1 4 272 1167 11:07
💚​ azure windows 1 4 275 1165 9:38
💚​ gcp linux 1 4 274 1167 10:18
💚​ gcp windows 1 4 276 1165 7:40
6 interesting tests: 4 SKIP, 1 RECOVERED, 1 flaky
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestSyncFullFileSync ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:48 gcp windows TestAccept
3:40 azure windows TestAccept
3:29 aws windows TestFilerWorkspaceFilesExtensionsReadDir
3:20 azure windows TestFilerWorkspaceNotebook/scalaNb.scala
3:15 aws windows TestAccept
2:22 aws linux TestFilerWorkspaceFilesExtensionsStat

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.

2 participants