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: clear InProgressImportStartTime in RESTORE #120414

Merged

Conversation

stevendanna
Copy link
Collaborator

Currently, RESTORE elides data from the in-progress import using MVCC timestamps and the stored InProgressImportStartTime, effectively restoring the table to the pre-import state.

However, we were failing to clear the descriptor field when bringing the tables back online. As a result, a subsequent backup and restore of that table would end up eliding data from the online table.

Epic: none

Release note (bug fix): Fixes an issue in which a RESTORE of a backup that itself contained a table created by the RESTORE of a table with an in-progress IMPORT would fail to restore all rows.

Currently, RESTORE elides data from the in-progress import using MVCC
timestamps and the stored InProgressImportStartTime, effectively
restoring the table to the pre-import state.

However, we were failing to clear the descriptor field when bringing
the tables back online. As a result, a subsequent backup and restore
of that table would end up eliding data from the online table.

Epic: none

Release note (bug fix): Fixes an issue in which a RESTORE of a backup
that itself contained a table created by the RESTORE of a table with
an in-progress IMPORT would fail to restore all rows.
@stevendanna stevendanna requested review from a team as code owners March 13, 2024 16:29
@stevendanna stevendanna requested review from dt and removed request for a team March 13, 2024 16:29
@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 find! You plan to backport this, right?

@stevendanna stevendanna added backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. labels Mar 14, 2024
@stevendanna
Copy link
Collaborator Author

bors r=msbutler

@craig
Copy link
Contributor

craig bot commented Mar 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants