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

ensure fileblob does not create temp files in OS's temp directory (respects 'export-path' config instead) #202

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

ashiqursuperfly
Copy link
Contributor

@ashiqursuperfly ashiqursuperfly commented Jan 3, 2025

Description

Go fileblob creates local files using os.tempdir which tries to create files in /tmp in Linux. If we try to store the final files in a path mounted by an external volume (e.g: PV in K8s), this produces a invalid cross device link error. Details: google/go-cloud#3294
Furthermore, the /tmp path lies under the pod ephemeral storage in K8s and therefore, the disk size is not guaranteed!

This PR addresses the issue by applying the suggested solutions by the maintainers of fileblob. The solution is to append a no_tmp_dir query parameter to file:// urls. This should allow using K8s persistent volumes to store local archive files during db pruning.

@imyousuf imyousuf merged commit ec1f9ec into newscred:main Jan 3, 2025
6 checks passed
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