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

Pause resume update #235

Merged
merged 17 commits into from
Dec 2, 2022
Merged

Pause resume update #235

merged 17 commits into from
Dec 2, 2022

Conversation

DmitriyMusatkin
Copy link
Contributor

Issue #, if available:

Description of changes:
Fix handling of pause after request completes.
Switched pause interface to return token object instead of serializing everything to a string.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

include/aws/s3/s3.h Outdated Show resolved Hide resolved
source/s3_auto_ranged_put.c Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
include/aws/s3/s3.h Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
source/s3_auto_ranged_put.c Outdated Show resolved Hide resolved
include/aws/s3/private/s3_auto_ranged_put.h Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Show resolved Hide resolved
include/aws/s3/s3_client.h Show resolved Hide resolved
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

fix & ship!

include/aws/s3/private/s3_client_impl.h Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
include/aws/s3/s3_client.h Outdated Show resolved Hide resolved
source/s3_auto_ranged_put.c Outdated Show resolved Hide resolved
source/s3_auto_ranged_put.c Outdated Show resolved Hide resolved
* @param resume_token outputs the json string with the state that can be used to resume the operation.
* @return
* @param resume_token resume token
* @return error code.
Copy link
Contributor

Choose a reason for hiding this comment

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

note somewhere, either in the @return or in the "Corner cases" that it will raise the AWS_ERROR_S3_PAUSE_FAILED_REQUEST_COMPLETED error if he operation has already completed

@DmitriyMusatkin DmitriyMusatkin merged commit 1dbf2d8 into main Dec 2, 2022
@DmitriyMusatkin DmitriyMusatkin deleted the pause_resume_update branch December 2, 2022 16:56
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.

3 participants