Skip to content

storage/cloud: remove CloseWithError#65660

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
dt:closewitherr
May 25, 2021
Merged

storage/cloud: remove CloseWithError#65660
craig[bot] merged 1 commit intocockroachdb:masterfrom
dt:closewitherr

Conversation

@dt
Copy link
Copy Markdown
Contributor

@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 a team, adityamaru and miretskiy and removed request for a team May 25, 2021 13:30
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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 dt force-pushed the closewitherr branch from efd8d29 to 771a2af Compare May 25, 2021 14:28
@dt
Copy link
Copy Markdown
Contributor Author

dt commented May 25, 2021

TFTR!

bors r+

@craig
Copy link
Copy Markdown
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.

3 participants