-
Notifications
You must be signed in to change notification settings - Fork 4k
release-24.1: sql/schemachanger: avoid retries on invalid expressions during backfills #147016
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
base: release-24.1
Are you sure you want to change the base?
Conversation
5b11005
to
d8236ca
Compare
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
Reminder: it has been 3 weeks please merge or close your backport! |
@yuzefovich Let me dig into the failures here to get these stable |
Currently, the schema changer uses a white list to determine which errors to be retired, which in some cases use a text comparison. Unfortunately, when we parse expressions their text can appear in the error and cause errors to be erroneously retried for backfills. To address this, this patch explicitly wraps errors from eval.Expr with SchemaChangerUserError to block retries. Fixes: #141352 Release note (bug fix): Invalid default expressions could cause backfilling schema changes to retry forever
d8236ca
to
bc3af72
Compare
✅ PR #147016 is compliant with backport policy Confidence: high 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Reminder: it has been 3 weeks please merge or close your backport! |
Backport 1/1 commits from #142490 on behalf of @fqazi.
Currently, the schema changer uses a white list to determine which errors to be retired, which in some cases use a text comparison. Unfortunately, when we parse expressions their text can appear in the error and cause errors to be erroneously retried for backfills. To address this, this patch explicitly wraps errors from eval.Expr with SchemaChangerUserError to block retries.
Fixes: #141352
Release note (bug fix): Invalid default expressions could cause backfilling schema changes to retry forever
Release justification: bug fix.