Skip to content

Make sure we still do writeback on test failure#10097

Open
smklein wants to merge 1 commit intomainfrom
baby-write-back
Open

Make sure we still do writeback on test failure#10097
smklein wants to merge 1 commit intomainfrom
baby-write-back

Conversation

@smklein
Copy link
Collaborator

@smklein smklein commented Mar 19, 2026

Uses SIGTERM for CockroachInstances that are dropped without being cleaned, to propagate ongoing
writes back to durable storage for inspection.

Additionally, adds a test which validates this behavior (torn writes should no longer appear with the new SIGTERM-on-drop implementation).

Fixes #10085

// process has exited. This lets us poll with a
// timeout and fall back to SIGKILL.
let deadline = std::time::Instant::now()
+ std::time::Duration::from_secs(5);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open for discussion on how long this should plausibly be. Could be forever, if we don't want to have the SIGKILL fallback below!

@smklein smklein marked this pull request as ready for review March 19, 2026 17:12
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.

CockroachDB's disable_synchronization_unsafe in tests causes unsynchronized writes

1 participant