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

Fix bug in ChecksummedBytes::into_inner #609

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

passaro
Copy link
Contributor

@passaro passaro commented Nov 16, 2023

Description of change

ChecksummedBytes::into_inner() was returning data from self rather than from the shrink_to_fit result. Added regression tests for ChecksummedBytes and for DiskDataCache (only caller of the into_inner()).

Does this change impact existing behavior?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

`ChecksummedBytes::into_inner()` was returning data from `self` rather than from the `shrink_to_fit` result. Added regression tests for `ChecksummedBytes` and for `DiskDataCache` (only caller of the `into_inner()`).

Signed-off-by: Alessandro Passaro <[email protected]>
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:21 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:21 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:21 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:21 — with GitHub Actions Inactive
Signed-off-by: Alessandro Passaro <[email protected]>
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:35 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:35 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:35 — with GitHub Actions Inactive
@passaro passaro temporarily deployed to PR integration tests November 16, 2023 10:35 — with GitHub Actions Inactive
@passaro passaro requested a review from dannycjones November 16, 2023 10:35
Copy link
Contributor

@dannycjones dannycjones left a comment

Choose a reason for hiding this comment

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

Nice catch! LGTM, thanks for adding plenty of tests here.

@dannycjones dannycjones added this pull request to the merge queue Nov 16, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 16, 2023
@dannycjones dannycjones added this pull request to the merge queue Nov 16, 2023
Merged via the queue into awslabs:main with commit 68e36c9 Nov 16, 2023
@passaro passaro deleted the disk_cache_fix branch November 16, 2023 17:47
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