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

Make s3 client able to report read window offset #971

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

monthonk
Copy link
Contributor

@monthonk monthonk commented Aug 5, 2024

Description of change

A few changes to make the GetObject request able to report current read window offset when backpressure is enabled and also make it return error instead of blocking when there is not enough read window. This is a part of bigger change (#926) but I would like to split it up into smaller PRs.

Does this change impact existing behavior?

No, backpressure is disabled by default and we don't use it in mountpoint today.

Does this change need a changelog entry in any of the crates?

Yes, updated changelog for mountpoint-s3-client.


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).

@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 09:09 — with GitHub Actions Inactive
@monthonk monthonk requested a review from dannycjones August 5, 2024 09:22
Signed-off-by: Monthon Klongklaew <[email protected]>
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 5, 2024 14:25 — with GitHub Actions Inactive
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.

I think it looks good overall, there's some feedback on improvements we can make to improve the documentation and error messages.

Sorry it took a while, still catching up on the backpressure changes.

mountpoint-s3-client/src/s3_crt_client/get_object.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/tests/get_object.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/s3_crt_client/get_object.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/mock_client.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/s3_crt_client.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Monthon Klongklaew <[email protected]>
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 6, 2024 17:02 — with GitHub Actions Inactive
@dannycjones dannycjones self-requested a review August 7, 2024 09:17
dannycjones
dannycjones previously approved these changes Aug 7, 2024
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.

Looks good, thanks for updating the errors for empty part window.

There's one small nit, I am happy for it to follow up in the next PR

mountpoint-s3-client/tests/get_object.rs Show resolved Hide resolved
mountpoint-s3-client/tests/get_object.rs Outdated Show resolved Hide resolved
Signed-off-by: Monthon Klongklaew <[email protected]>
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests August 7, 2024 09:57 — with GitHub Actions Inactive
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.

LGTM!

@monthonk monthonk added this pull request to the merge queue Aug 7, 2024
Merged via the queue into awslabs:main with commit 6c6b1e3 Aug 7, 2024
23 checks passed
@monthonk monthonk deleted the backpressure_client branch August 7, 2024 10:34
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