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.
39459: importccl: Rollback partial IMPORT INTO r=dt a=dt importccl: Rollback partial IMPORT INTO This uses RevertRange to rollback IMPORT’ed data when IMPORT fails. Without this, partially imported data would remain in the table — which could lead to unexpected results, prevent retrying (due to uniqueness) and generally make things messy. Release note (sql change): IMPORT INTO cleans up any imported rows if it fails. jobs,importccl: add testing knobs to job resumers Jobs are run by resumers, which are created by the registry. Any testing knobs in a job's execution therefore need to be plumbed via the resumer, which in turn needs to be plumbed from the registry. This adds a generic hook that can be installed to run during resumer creation and an example of it for IMPORT for failure injection after a job is otherwise complete (e.g. so it has the most to clean up). Release note: none. importccl: fix no-op txn against unused server Somehow ended up with a testserver as well as the testcluster. This code meant to insert X rows in one txn, but the txn was against the single server while the inserts were being sent (standalone) to the cluster. This simply removes the extra server and the unused txns. Release note: none. sql: log when reverting tables Reverting a table is a big deal, and could easily trip up other systems so if someone is looking at logs around the time a revert happened, it would probably be useful for it to be mentioned there. Release note: none. Co-authored-by: David Taylor <[email protected]>
- Loading branch information
Showing
4 changed files
with
86 additions
and
112 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
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