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: clean up old backup syntax code #135134

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

kev-cao
Copy link
Contributor

@kev-cao kev-cao commented Nov 14, 2024

The old backup syntax was fully removed in #133610. This commit removes all the old code that ran for the old syntax.

Epic: none

Release note: none

@kev-cao kev-cao requested review from a team as code owners November 14, 2024 03:17
@kev-cao kev-cao requested review from jeffswenson and mgartner and removed request for a team November 14, 2024 03:17
Copy link

blathers-crl bot commented Nov 14, 2024

It looks like your PR touches SQL parser code but doesn't add or edit parser tests. Please make sure you add or edit parser tests if you edit the parser.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@kev-cao kev-cao marked this pull request as draft November 14, 2024 03:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kev-cao kev-cao marked this pull request as ready for review November 14, 2024 16:23
@kev-cao kev-cao requested review from dt and msbutler November 14, 2024 16:23
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! just a couple nits

PrevBackupURIs: prevBackupURIs,
}, nil
}

defaultStore, err := makeCloudStorage(ctx, plannedBackupDefaultURI, user)
if err != nil {
return ResolvedDestination{}, err
Copy link
Collaborator

Choose a reason for hiding this comment

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

as a follow up todo, you could clean up some of the error handling and comments below.

@kev-cao kev-cao force-pushed the backupccl/cleanup-backup branch 2 times, most recently from b8dd321 to 8bf2518 Compare November 15, 2024 15:34
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.

i should have been more clear: i think this pr should refactor all the code you have here, but in a seperate pr with a release note, i would remove that error path + old cluster setting.

pkg/ccl/backupccl/backupdest/backup_destination.go Outdated Show resolved Hide resolved
@kev-cao kev-cao force-pushed the backupccl/cleanup-backup branch 3 times, most recently from d26253e to b61e7a8 Compare November 15, 2024 16:12
The old backup syntax was fully removed in cockroachdb#133610. This commit
removes all the old code that ran for the old syntax.

Epic: none

Release note: none
@kev-cao
Copy link
Contributor Author

kev-cao commented Nov 15, 2024

TFTR!

bors r=msbutler

@craig craig bot merged commit c22788c into cockroachdb:master Nov 15, 2024
23 checks passed
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