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.
44607: sql: handle missing job when during mutations GC r=lucy-zhang a=pbardea There are cases where the schema changer tries to clean out the mutations on a descriptor. When it cannot find the job it currently throws an error and this does not let the transaction that cleans the job from the descriptor commit. However, if it cannot find the job then there is no chance it will find the job later. Currently, the schema changer will repeatedly attempt to clean this job and always fail since it cannot find the job. It should consider the job as successful if it cannot find the job and continue committing the transaction that does the cleanup for this mutation. Release note (bug fix): Stop repeatedly looking for non-existing jobs, which may cause high memory usage, when cleaning up schema changes. Co-authored-by: Paul Bardea <[email protected]>
- Loading branch information
Showing
2 changed files
with
100 additions
and
1 deletion.
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