Skip to content

backupccl: add deprecation warning for SHOW BACKUP without subdir#78626

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-show-warning
Mar 29, 2022
Merged

backupccl: add deprecation warning for SHOW BACKUP without subdir#78626
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-show-warning

Conversation

@msbutler
Copy link
Copy Markdown
Collaborator

Informs: #78153

Release note (sql change): The SHOW BACKUP cmd without the IN keyword to
specify a subdirectory is deprecated and will be removed from a future release.
Users are recommended to only create collection based backups and view them
with SHOW BACKUP FROM <backup> IN <collection>

@msbutler msbutler added A-disaster-recovery T-disaster-recovery branch-release-22.1 Used to mark GA and release blockers, technical advisories, and bugs for 22.1 labels Mar 28, 2022
@msbutler msbutler requested review from a team, adityamaru, benbardin and dt March 28, 2022 15:24
@msbutler msbutler self-assigned this Mar 28, 2022
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@msbutler msbutler added backport-22.1.x and removed branch-release-22.1 Used to mark GA and release blockers, technical advisories, and bugs for 22.1 labels Mar 28, 2022
Copy link
Copy Markdown
Collaborator

@benbardin benbardin left a comment

Choose a reason for hiding this comment

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

Can/do we have some documentation on the deprecation of old-style backups in general? I wonder if it would be clearer to users if the 3-4 places they'd interact with this reference the same github issue explicitly. I don't know that it's intrinsically clear that "BACKUP INTO" means "collection" syntax and "BACKUP TO" means...well, whatever it means. Thoughts?

Informs: cockroachdb#78153

Release note (sql change): The `SHOW BACKUP` cmd  without the `IN` keyword to
specify a subdirectory is deprecated and will be removed from a future release.
Users are recommended to only create collection based backups and view them
with `SHOW BACKUP FROM <backup> IN <collection>`
@msbutler msbutler force-pushed the butler-show-warning branch from fa5603a to 5201176 Compare March 28, 2022 20:36
@msbutler
Copy link
Copy Markdown
Collaborator Author

@benbardin I think your question will be easier to answer once @kathancox updates the 22.1 docs. Given that the BACKUP and RESTORE warnings have already been backported, I think we should backport this PR ASAP. Then, we can consider updating each warning link once the docs are up to date?

@benbardin
Copy link
Copy Markdown
Collaborator

@benbardin I think your question will be easier to answer once @kathancox updates the 22.1 docs. Given that the BACKUP and RESTORE warnings have already been backported, I think we should backport this PR ASAP. Then, we can consider updating each warning link once the docs are up to date?

Yeah, makes sense to me! LGTM. Thanks!

@msbutler
Copy link
Copy Markdown
Collaborator Author

TFTRS!!!

bors r = adityamaru, benbardin

@msbutler
Copy link
Copy Markdown
Collaborator Author

bors r=adityamaru, benbardin

@craig craig bot merged commit 897c2da into cockroachdb:master Mar 29, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 29, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants