-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
release-23.1.9-rc: fix flakes inside TestRandomSyntaxFunctions #108996
release-23.1.9-rc: fix flakes inside TestRandomSyntaxFunctions #108996
Conversation
Previously, the function: revalidate_unique_constraints_in_all_tables did not properly check for cancellation when looping over all descriptors. This could just lead to a delayed cancellation or timeouts in tests. To address this, this patch updates the logic to check for cancellations while loop over descriptors. Fixes: cockroachdb#107410, cockroachdb#107411 Release note: None
Previously, the TestRandomSyntaxFunctions could invoke crdb_internal.gen_rand_ident with random arguments, which could be giant number of random identifiers. To address this, this patch will avoid validating this function. Release note: None
Previously, this test could depending on the concurrency, could spawn a large number of schema telemetry jobs via (ctdb_internal.create_sql_schema_telemetry_job). This could lead to contention that will eventually cause this test to time out. To address this, this patch limits calling the telemetry job creation function. Fixes: cockroachdb#108153 Release note: None
Previously, the code for creating and waiting for the job inside CREATE STATISTICs had a race condition, where we could end up using context after a tracing span was cleaned up on it. To address this, this patch adjusts the code to wait for a go routine to clean up before, returning and allowing the span to clean up. Epic: none Release note: None
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
I think we should hold off on merging this until #109007 is fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but we will want #109029 too
Backport:
Please see individual PRs for details.
/cc @cockroachdb/release
Release justification: low risk fixes to get testing stable
Fixes: #108650