forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl,importccl: only reset ModificationTime on tables after upgrade
In cockroachdb#54296 we began resetting the version and modification time for all newly added descriptors. This is fine for the descriptors which did not exist or have those fields in 20.1 (schema, type, db). For tables however, this is not okay because code in release 20.1 is missing a check added in the 20.2 cycle to allow a missing modification time for version 1. This breaks restore and import in the mixed version state. This PR gates the resetting of modification time on the cluster version. I have verified that this fixes the jobs/mixed-version roachtest which previously failed deterministically due to this bug. No release note because we haven't shipped this bug. Fixes cockroachdb#54319. Release note: None
- Loading branch information
Showing
3 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters