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

spanconfigsqltranslator: translate spanconfigs for offline dbs #91173

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

adityamaru
Copy link
Contributor

Previously, we would ignore sql updates for databases that are offline. As explained in #91148 in some situations we require writing a protected timestamp to an offline database during a restore. This will require the spanconfig machinery to reconcile the PTS record so that the GC queue can observe and respect it.

We already reconcile sql udpates for offline tables so it seems reasonable to do the same for offline databases.

Fixes: #91149

Release note: None

@adityamaru adityamaru requested a review from a team as a code owner November 3, 2022 02:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

Seems pretty reasonable to me.

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

:lgtm:

Do you think it's worth adding a test where we try to add a PTS for an offline database as well, given that's what the issue describes?

Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @msbutler)

Previously, we would ignore sql updates for databases
that are offline. As explained in  cockroachdb#91148 in some situations
we require writing a protected timestamp to an offline database
during a restore. This will require the spanconfig machinery to
reconcile the PTS record so that the GC queue can observe
and respect it.

We already reconcile sql udpates for offline tables so it seems
reasonable to do the same for offline databases.

Fixes: cockroachdb#91149

Release note: None
@adityamaru
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 5, 2022

Build succeeded:

@blathers-crl
Copy link

blathers-crl bot commented Nov 5, 2022

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from fa09e28 to blathers/backport-release-22.1-91173: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 22.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

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.

spanconfigccl: reconcile zone configs for offline descriptors
4 participants