-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
A-cli-serverCLI commands that pertain to CockroachDB server processesCLI commands that pertain to CockroachDB server processesA-orchestrationRelating to orchestration systems like KubernetesRelating to orchestration systems like KubernetesA-storageRelating to our storage engine (Pebble) on-disk storage.Relating to our storage engine (Pebble) on-disk storage.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-easyEasy issue to tackle, requires little or no CockroachDB experienceEasy issue to tackle, requires little or no CockroachDB experienceE-quick-winLikely to be a quick win for someone experienced.Likely to be a quick win for someone experienced.E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.O-sreFor issues SRE opened or otherwise cares about tracking.For issues SRE opened or otherwise cares about tracking.T-storageStorage TeamStorage Team
Description
Currently, if CockroachDB is run with the --temp-dir
being on the same disk as --store
and an intensive operation is ran that spills to disk more than the available remaining disk capacity, CockroachDB will not automatically recover by clearing out the temporary directory on next start even if doing so would be sufficient to clear out the out of disk state. It would be ideal if it could as to prevent us from needing to manually delete the temporary files.
To Reproduce
- Run CockroachDB without a specified
--temp-dir
so it defaults to the--store
location, and a--max-disk-temp-storage
more than the available remaining disk capacity. - Run an intensive query that spills to disk more than the remaining disk capacity.
- CockroachDB crashes with exit code 10 (as expected when it runs out of disk).
- On restart, CockroachDB fails fast with the error message that the disk is out of space, even though if it were to clear the
--temp-dir
it would have enough space to start.
Expected behavior
- Run CockroachDB without a specified
--temp-dir
so it defaults to the--store
location, and a--max-disk-temp-storage
more than the available remaining disk capacity. - Run an intensive query that spills to disk more than the remaining disk capacity.
- CockroachDB crashes with exit code 10 (as expected when it runs out of disk).
- On restart, CockroachDB clears the
--temp-dir
and then checks if the disk is out of space, in which it finds it isn't, and starts normally.
Environment:
- CockroachDB version: 22.1.4
- Server OS: Docker image on amd64 Linux
- Client app: N/A
Jira issue: CRDB-18064
joshimhoff
Metadata
Metadata
Assignees
Labels
A-cli-serverCLI commands that pertain to CockroachDB server processesCLI commands that pertain to CockroachDB server processesA-orchestrationRelating to orchestration systems like KubernetesRelating to orchestration systems like KubernetesA-storageRelating to our storage engine (Pebble) on-disk storage.Relating to our storage engine (Pebble) on-disk storage.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-easyEasy issue to tackle, requires little or no CockroachDB experienceEasy issue to tackle, requires little or no CockroachDB experienceE-quick-winLikely to be a quick win for someone experienced.Likely to be a quick win for someone experienced.E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.O-sreFor issues SRE opened or otherwise cares about tracking.For issues SRE opened or otherwise cares about tracking.T-storageStorage TeamStorage Team