-
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: fix flakes inside TestRandomSyntaxFunctions #108995
Merged
rafiss
merged 4 commits into
cockroachdb:release-23.1
from
fqazi:backport23.1-107491-108525
Aug 18, 2023
Merged
release-23.1: fix flakes inside TestRandomSyntaxFunctions #108995
rafiss
merged 4 commits into
cockroachdb:release-23.1
from
fqazi:backport23.1-107491-108525
Aug 18, 2023
Conversation
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
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
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:
|
Nice! just a heads up that we also need to backport to the |
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
fqazi
force-pushed
the
backport23.1-107491-108525
branch
from
August 18, 2023 14:41
3072c76
to
11f3d6f
Compare
rafiss
approved these changes
Aug 18, 2023
Gah, now that we've merged this I think #109007 needs to become a blocker for 23.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes backport fixes from master eliminate flakes for TestRandomSyntaxFunctions on this branch
Backport:
Please see individual PRs for details.
/cc @cockroachdb/release
Release justification: low risk fixes to get testing stable
Fixes: #107928