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

Only load the shard chunk dedup tables for the upload path #129

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

hoytak
Copy link
Collaborator

@hoytak hoytak commented Dec 20, 2024

Currently, the shard chunk lookup tables are read and loaded on startup for both upload and download. However, they are only needed for upload. This PR disables this step for the download path, as the current setup will be either one or the other, not both.

(In the old xet-core, these tables were loaded in the background, so this was less of an issue but meant more async and locking annoyance and so was dropped during the keyed hash update).

Copy link
Contributor

@assafvayner assafvayner left a comment

Choose a reason for hiding this comment

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

Generally LGTM, but I lack context, I would prefer to get @seanses to approve

Copy link
Collaborator

@seanses seanses 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. We should test thoroughly end to end since this is a dangerous change: shards downloaded from CAS servers don't contain in-shard dedup lookups so building the in-memory lookup is critical.

@hoytak hoytak merged commit d88a88a into main Jan 6, 2025
2 checks passed
@hoytak hoytak deleted the hoytak/241220-only-load-shard-lookup-on-clean branch January 6, 2025 22:00
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.

3 participants