-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importccl: fail IMPORT INTO on concurrent type change
This change adds logic to check that the type descriptors referenced by the table being imported into have not undergone any changes (adding/dropping values) during the course of the import job execution. This is done by matching the current type desc modification time against the modification time on the type desc that was cached in the import job during planning. If there is a mismatch, we should fail the job since the data could be referencing a value that has been renamed, leading to corrupt kv entries. Release note (bug fix): add protection to import into to guard against concurrent type changes on UDTs referenced by the target table. Release justification: fixes for high-priority or high-severity bugs in existing functionality
- Loading branch information
1 parent
47e3143
commit 2a3ee17
Showing
2 changed files
with
183 additions
and
3 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