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

Dedupe load_bytes_with calls to a remote Store (Cherry-pick of #15901) #15915

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Jun 24, 2022

As described in #15524: remote::ByteStore::load_bytes_with calls are not deduped currently, meaning that if multiple consumers identify a Digest which is missing from the local store, they might concurrently fetch it from the remote store.

This is primarily an issue with --remote-cache-eager-fetch=false, as the laziness means that all consumers of a process output might consider whether to download it simultaneously (rather than the output always being downloaded before the process is called complete).

Fixes #15524.

[ci skip-build-wheels]

As described in pantsbuild#15524: `remote::ByteStore::load_bytes_with` calls are not deduped currently, meaning that if multiple consumers identify a `Digest` which is missing from the local store, they might concurrently fetch it from the remote store.

This is primarily an issue with `--remote-cache-eager-fetch=false`, as the laziness means that all consumers of a process output might consider whether to download it simultaneously (rather than the output always being downloaded before the process is called complete).

Fixes pantsbuild#15524.

[ci skip-build-wheels]
@stuhood stuhood merged commit 69a10c7 into pantsbuild:2.13.x Jun 24, 2022
@stuhood stuhood deleted the cherry-pick-15901-to-2.13.x branch June 24, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants