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

parser, backupccl: support running RESTORE in explicit txn #52779

Merged
merged 2 commits into from
Aug 13, 2020

Conversation

adityamaru
Copy link
Contributor

Fixes: #50735

Add DETACHED option to the list of allowed RESTORE options.  This option
requests the restore to run in detached mode: that is, the restore
statement should not block, and instead simply return the job id.

Release note: None
Allow execution of RESTORE statement under explicit transaction,
provided the "DETACHED" option is specified:

RESTORE FROM <location_uri> ... WITH DETACHED When restore runs in
detached mode, we do not wait for the job completion. Instead, we return
the job id to the caller, and the job executes asynchronously.

Release note (enterprise change): RESTORE can now run in "detached"
mode.  That is, we do not wait for the RESTORE job to finish. Instead,
the job ID is returned immediately, and the job itself runs in
background.
@adityamaru adityamaru requested review from miretskiy and a team August 13, 2020 15:36
@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 6 of 6 files at r1, 3 of 3 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@adityamaru
Copy link
Contributor Author

TFTR!

bors r=miretskiy

@craig
Copy link
Contributor

craig bot commented Aug 13, 2020

Build succeeded:

@craig craig bot merged commit 6c43ab2 into cockroachdb:master Aug 13, 2020
@adityamaru adityamaru deleted the restore-in-detached branch August 13, 2020 17:31
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.

Support DETACHED option for RESTORE
3 participants