Skip to content

Gracefully terminate CRDB #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 27, 2021
Merged

Gracefully terminate CRDB #553

merged 3 commits into from
Dec 27, 2021

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Dec 23, 2021

This should fix #540 by ensuring that no "temporary files" pointing to the seed directory exist after shutdown.

Additionally, adds an assertion that the temp-dirs-record.txt file is empty (as suggested in cockroachdb/cockroach#74231)

Copy link
Collaborator

@davepacheco davepacheco left a comment

Choose a reason for hiding this comment

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

Looks good.

Is it worth pulling in nix just for a safe kill? I think the libc impl is totally sound and we use it in a few other places. (I'm only worried about build times, honestly.)

@smklein
Copy link
Collaborator Author

smklein commented Dec 27, 2021

Looks good.

Is it worth pulling in nix just for a safe kill? I think the libc impl is totally sound and we use it in a few other places. (I'm only worried about build times, honestly.)

Nix is only like ~240KB, and for a test utility, I figured that would be okay, but sure, I've updated the PR to use unsafe libc calls directly instead.

@smklein smklein merged commit b8ac2e2 into main Dec 27, 2021
@smklein smklein deleted the graceful-crdb-shutdown branch December 27, 2021 16: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.

test_paginated_single_column_descending is flaky
2 participants