Skip to content

commitlog: Add a test that triggers the panic when commit.write fails - #5829

Merged
kim merged 1 commit into
masterfrom
kim/commitlog/test-commit-write-panic
Sep 2, 2026
Merged

commitlog: Add a test that triggers the panic when commit.write fails#5829
kim merged 1 commit into
masterfrom
kim/commitlog/test-commit-write-panic

Conversation

@kim

@kim kim commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Also adjust the commentary to explain why we're doing that, and include the size of the remaining buffer in the panic message.

Also fix passing the write buffer size when resuming a segment.

Expected complexity level and risk

1

Testing

Adds a test.

Rollback safety impact

n/a

@kim
kim requested a review from Shubham8287 August 27, 2026 15:47
@kim
kim force-pushed the kim/commitlog/test-commit-write-panic branch from bcb2673 to afda5da Compare August 28, 2026 07:38
Also adjust the commentary to explain why we're doing that, and include
the size of the remaining buffer in the panic message.

Also fix passing the write buffer size when resuming a segment.
@kim
kim force-pushed the kim/commitlog/test-commit-write-panic branch from afda5da to 9e5c947 Compare September 2, 2026 05:58
@kim
kim disabled the stack merge September 2, 2026 08:27
@kim
kim added this pull request to the merge queue Sep 2, 2026
Merged via the queue into master with commit 5f3e26b Sep 2, 2026
56 of 60 checks passed
@kim
kim deleted the kim/commitlog/test-commit-write-panic branch September 2, 2026 08:34
pull Bot pushed a commit to TheTechOddBug/SpacetimeDB that referenced this pull request Sep 2, 2026
To ensure that any (partially) written data left my a crashed process is
visible.

Stacked on top of clockworklabs#5829 

# Rollback safety impact

n/a
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