Skip to content
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

databend-query error start with Storageunavailable. Code: 39901, Text = can't clean temp dir:Permission denied (os error 13) #17080

Open
wubx opened this issue Dec 19, 2024 · 5 comments
Assignees

Comments

@wubx
Copy link
Member

wubx commented Dec 19, 2024

Summary
image

image
Databend Query start failure, caluse: Storageunavailable. Code: 39901, Text = can't clean temp dir:Permission denied (os error 13)

This hint is a little confusing what is it.

@TCeason
Copy link
Collaborator

TCeason commented Dec 19, 2024

"can't clean temp dir: {e}",

@wubx
Copy link
Member Author

wubx commented Dec 19, 2024

// Trick for cloud, perhaps we should introduce a new configuration for the local writeable root.
if cache.disk_cache_config.path != inner::DiskCacheConfig::default().path
&& spill.spill_local_disk_path == inner::SpillConfig::default().path
{
spill.spill_local_disk_path = PathBuf::from(&cache.disk_cache_config.path)
.join("temp/_query_spill")
.into();
};

@forsaken628
Copy link
Collaborator

The current configuration of local spill is a bit complicated.

  1. It is not enabled by default.
  2. Configured spill_local_disk_path to enable it.
  3. Configuring cache-disk-path will also enable it.

When enabled, it removes spill_local_disk_path as a backing mechanism for space cleanup.
This makes sense if spill_local_disk_path is an internally generated path.
But if it is not internally generated, but externally configured, deleting the path is unreasonable and should throw an error if the path does not exist.

Is there a best practice to make these logics a bit more standardized?

@wubx
Copy link
Member Author

wubx commented Dec 20, 2024

It might be a good idea to keep the separate.

@forsaken628
Copy link
Collaborator

update in #17103

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 a pull request may close this issue.

3 participants