Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to cockroachdb#107570 this is a short term fix for when an a query is executed with an AS OF SYSTEM TIME picks a transaction timestamp before the job_info migration has run. In which case parts of the jobs infrastructure will attempt to query the job_info column even though it doesn't exist at the transaction's timestamp. As a short term fix, when we encounter an UndefinedObject error for the job_info table we generate a synthetic retryable error so that the txn is pushed to a higher timestamp at which the upgrade will have completed and the job_info table will be visible. The longer term fix is being tracked in cockroachdb#106764. On master I can no longer reproduce the failure in cockroachdb#105032 but on 23.1 with this change I can successfully run 30 iterations of the test on a seed (-8690666577594439584) which previously saw occurrences of this flake. Fixes: cockroachdb#103239 Fixes: cockroachdb#105032 Release note: None
- Loading branch information