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

storage/cloud: remove CloseWithError #65660

Merged
merged 1 commit into from May 25, 2021
Merged

Conversation

dt
Copy link
Member

@dt dt commented May 25, 2021

Context cancellation is typically how operations are aborted.
When we open a new Writer, we pass a context, so we must assume
that that context can be cancelled, which should cancel the write
operation. Having an extra CloseWithError method in the API that
also cancels the operation is duplicative.

Release note: none.

@dt dt requested review from miretskiy, a team and adityamaru and removed request for a team May 25, 2021 13:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@miretskiy miretskiy left a comment

Choose a reason for hiding this comment

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

Reviewed 14 of 17 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @adityamaru)

Context cancellation is typically how operations are aborted.
When we open a new Writer, we pass a context, so we must assume
that that context can be cancelled, which should cancel the write
operation. Having an extra CloseWithError method in the API that
also cancels the operation is duplicative.

Release note: none.
@dt
Copy link
Member Author

dt commented May 25, 2021

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented May 25, 2021

Build succeeded:

@craig craig bot merged commit 6bb3ba5 into cockroachdb:master May 25, 2021
@dt dt deleted the closewitherr branch May 25, 2021 16:58
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.

None yet

3 participants