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

Store verifies digest lengths internally #6588

Merged

Conversation

illicitonion
Copy link
Contributor

Without this change, ensure_remote_has_recursive may return Ok even
though the Digest being uploaded doesn't get uploaded.

Without this change, ensure_remote_has_recursive may return Ok even
though the Digest being uploaded doesn't get uploaded.
Ok(bytes) => {
if bytes.len() == digest.1 {
Ok(Some(f(Bytes::from(bytes))))
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Does this case represent a hash collision...? If so, should we be noisier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@stuhood stuhood merged commit 9df7cee into pantsbuild:master Oct 5, 2018
@stuhood
Copy link
Member

stuhood commented Oct 5, 2018

Shard 3 is the only failure here (fixed by #6600). Merging.

@stuhood stuhood deleted the dwagnerhall/remoting/storeverifylength branch October 5, 2018 21:39
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