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

backupccl: update restore job description #127970

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

azhu-crl
Copy link
Contributor

Previously, restore job description follows the old syntax RESTORE ... FROM, this PR updates the job description such that it reflects the new syntax:
RESTORE FROM {backup} IN {collectionURI}.

Epic: none
Fixes: #127728

Release note (bug fix): Updated restore job description from RESTORE ... FROM to RESTORE FROM {backup} IN {collectionURI} to reflect the new restore syntax.

@azhu-crl azhu-crl requested a review from msbutler July 31, 2024 14:07
@azhu-crl azhu-crl requested a review from a team as a code owner July 31, 2024 14:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@msbutler msbutler left a comment

Choose a reason for hiding this comment

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

Nice job!!

@@ -1239,12 +1217,12 @@ func TestBackupRestoreSystemJobs(t *testing.T) {
sqlDB.Exec(t, `RESTORE TABLE bank FROM LATEST IN $1 WITH OPTIONS (into_db='restoredb')`, collectionDir)

//TODO(kev-cao): fix the restore description when restoring from a backup tree
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: remove this todo?

Previously, restore job description follows the old syntax
`RESTORE ... FROM`, this PR updates the job description
such that it reflects the new syntax:
`RESTORE FROM {backup} IN {collectionURI}`.

Epic: none
Fixes: cockroachdb#127728

Release note (bug fix): Updated restore job description from
`RESTORE ... FROM` to `RESTORE FROM {backup} IN {collectionURI}`
to reflect the new restore syntax.
@azhu-crl
Copy link
Contributor Author

TFTR!

bors r=msbutler

@craig craig bot merged commit 7afbca4 into cockroachdb:master Jul 31, 2024
21 of 22 checks passed
@azhu-crl azhu-crl deleted the update-restore-description branch July 31, 2024 21:26
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.

backupccl: the restore job description reflects the old syntax
3 participants