-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
pkg/sql/sqlstats/insights/integration/integration_test: TestInsightsIntegrationForContention failed #108368
Comments
FYI: not sure if this was before or after the change got merged: #108230 |
@j82w it looks like this failed on master with those changes :( |
My current theory is a race condition exists with secondary tenants. The only suggestions I have are
|
I have not been able to reproduce this issue locally. I don't think @koorosh was able to either. |
pkg/sql/sqlstats/insights/integration/integration_test.TestInsightsIntegrationForContention failed with artifacts on master @ 0d110cd57dc85944b3c74bf21546f789b285e509:
Same failure on other branches
|
`TestInsightsIntegrationForContention` is flaky due to checking for an expected contention insight event that in rare cases may not be generated. Previously, this test was not attempting to enforce that the blocking transaction blocks the expected query for the required amount of time. The test sets the insight latency threshold to 30ms, however in rare cases it's possible that the waiting query finishes executing in that time. This fix adds a wait group s.t. the blocking txn will wait for the waiting txn to begin executing, then sleep for a duration of 500ms. This should ensure we hit the 30ms threshold required by insights. Epic: none Fixes: cockroachdb#108368 Release note: None
`TestInsightsIntegrationForContention` is flaky due to checking for an expected contention insight event that in rare cases may not be generated. Previously, this test was not attempting to enforce that the blocking transaction blocks the expected query for the required amount of time. The test sets the insight latency threshold to 30ms, however in rare cases it's possible that the waiting query finishes executing in that time. This fix adds a wait group s.t. the blocking txn will wait for the waiting txn to begin executing, then sleep for a duration of 500ms. This should ensure we hit the 30ms threshold required by insights. Epic: none Fixes: cockroachdb#108368 Release note: None
108384: release: update predecessor map for 22.2.13 r=THardy98 a=THardy98 Release note: None Epic: None 108479: insights: fix flaky `TestInsightsIntegrationForContention` r=xinhaoz a=xinhaoz `TestInsightsIntegrationForContention` is flaky due to checking for an expected contention insight event that in rare cases may not be generated. Previously, this test was not attempting to enforce that the blocking transaction blocks the expected query for the required amount of time. The test sets the insight latency threshold to 30ms, however in rare cases it's possible that the waiting query finishes executing in that time. This fix adds a wait group s.t. the blocking txn will wait for the waiting txn to begin executing, then sleep for a duration of 500ms. This should ensure we hit the 30ms threshold required by insights. Epic: none Fixes: #108368 Release note: None Co-authored-by: Thomas Hardy <thardy@cockroachlabs.com> Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com>
`TestInsightsIntegrationForContention` is flaky due to checking for an expected contention insight event that in rare cases may not be generated. Previously, this test was not attempting to enforce that the blocking transaction blocks the expected query for the required amount of time. The test sets the insight latency threshold to 30ms, however in rare cases it's possible that the waiting query finishes executing in that time. This fix adds a wait group s.t. the blocking txn will wait for the waiting txn to begin executing, then sleep for a duration of 500ms. This should ensure we hit the 30ms threshold required by insights. Epic: none Fixes: #108368 Release note: None
`TestInsightsIntegrationForContention` is flaky due to checking for an expected contention insight event that in rare cases may not be generated. Previously, this test was not attempting to enforce that the blocking transaction blocks the expected query for the required amount of time. The test sets the insight latency threshold to 30ms, however in rare cases it's possible that the waiting query finishes executing in that time. This fix adds a wait group s.t. the blocking txn will wait for the waiting txn to begin executing, then sleep for a duration of 500ms. This should ensure we hit the 30ms threshold required by insights. Epic: none Fixes: #108368 Release note: None
pkg/sql/sqlstats/insights/integration/integration_test.TestInsightsIntegrationForContention failed with artifacts on master @ 4c397610e416cd81c839ec2f8b7cbc5ac51f8322:
Help
See also: How To Investigate a Go Test Failure (internal)
Same failure on other branches
This test on roachdash | Improve this report!
Jira issue: CRDB-30441
The text was updated successfully, but these errors were encountered: