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

[DAS] Always make expiry index #2470

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

Tristan-Wilson
Copy link
Member

@Tristan-Wilson Tristan-Wilson commented Jul 10, 2024

This PR makes the das filestore always create the by-expiry-timestamp directory so that expiry can be enabled at a later time if the operator desires, without needing any additional migration.

Original PR: #2385

Under the top level directory of <datadir>/by-expiry-timestamp a new directory will be created every ~2.7 hours, which, for a non-expiring DAS, gives about 3244 directories per year, giving about 20 years til we hit the 65K we are trying to avoid.

Example path: <datadir>/by-expiry-timestamp/171702/5712/1b7a84fcdb5f467ec4889e99dba58b2e6d56e0154538ee2a3083aa1582ab833e

Testing done

Re-tested migrating the old style format with the configuration used in #2385 but with data-availability.local-file-storage.enable-expiry set to false, and spot checked that the by-expiry-timestamp directory was populated correctly. Stopped the daserver and checked that setting data-availability.local-file-storage.enable-expiry to true then pruned the data as expected.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Jul 10, 2024
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli left a comment

Choose a reason for hiding this comment

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

LGTM

@Tristan-Wilson Tristan-Wilson enabled auto-merge July 10, 2024 16:20
@Tristan-Wilson Tristan-Wilson merged commit 0fb02ca into master Jul 10, 2024
13 checks passed
@Tristan-Wilson Tristan-Wilson deleted the das-fs-always-create-expiry-dir branch July 10, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants