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

Support backpressure for GetObject request #889

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

monthonk
Copy link
Contributor

@monthonk monthonk commented May 24, 2024

Description of change

The CRT has flow-control window feature in the read path (awslabs/aws-c-s3#213) to let users control how fast they want to download data. This change exposes the backpressure read mechanism in the get_object interface.

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

@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 24, 2024 10:57 — with GitHub Actions Inactive
@dannycjones dannycjones changed the title Support backpressure for GetOjbect request Support backpressure for GetObject request May 24, 2024
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:20 — with GitHub Actions Inactive
@monthonk monthonk had a problem deploying to PR integration tests May 28, 2024 10:20 — with GitHub Actions Failure
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:46 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:46 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:46 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:46 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:47 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:47 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests May 28, 2024 10:47 — with GitHub Actions Inactive
mountpoint-s3-crt/src/s3/client.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/tests/get_object.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/tests/common/mod.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/tests/common/mod.rs Show resolved Hide resolved
mountpoint-s3-client/src/lib.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/mock_client.rs Show resolved Hide resolved
mountpoint-s3-client/src/mock_client.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/object_client.rs Outdated Show resolved Hide resolved
mountpoint-s3-client/src/s3_crt_client.rs Show resolved Hide resolved
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
@monthonk monthonk had a problem deploying to PR integration tests June 6, 2024 13:15 — with GitHub Actions Failure
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:15 — with GitHub Actions Inactive
monthonk added 2 commits June 6, 2024 13:49
The CRT has flow-control window feature in the read path (awslabs/aws-c-s3#213)
to let users control how fast they want to download data. This change
exposes the backpressure read mechanism in the `get_object` interface.

Signed-off-by: Monthon Klongklaew <[email protected]>
Signed-off-by: Monthon Klongklaew <[email protected]>
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 13:59 — with GitHub Actions Inactive
@monthonk monthonk temporarily deployed to PR integration tests June 6, 2024 14:00 — with GitHub Actions Inactive
#[tokio::test]
async fn test_get_object_backpressure(size: usize, range: Option<Range<u64>>) {
let sdk_client = get_test_sdk_client().await;
let (bucket, prefix) = get_test_bucket_and_prefix("test_get_object");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this and line 101 do not reflect the test name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right. I will update them in a followup PR.

mountpoint-s3-client/src/s3_crt_client.rs Show resolved Hide resolved
@monthonk monthonk added this pull request to the merge queue Jun 11, 2024
Merged via the queue into awslabs:main with commit 6502699 Jun 11, 2024
23 checks passed
@monthonk monthonk deleted the read_window_get branch June 11, 2024 15:44
mhnap pushed a commit to mhnap/mountpoint-s3 that referenced this pull request Aug 1, 2024
* Support backpressure for GetObject request

The CRT has flow-control window feature in the read path (awslabs/aws-c-s3#213)
to let users control how fast they want to download data. This change
exposes the backpressure read mechanism in the `get_object` interface.

Signed-off-by: Monthon Klongklaew <[email protected]>

* PR comments

Signed-off-by: Monthon Klongklaew <[email protected]>

---------

Signed-off-by: Monthon Klongklaew <[email protected]>
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