Skip to content

Commit 5cfe9fe

Browse files
craig[bot]koorosh
andcommitted
108165: sql: fix insight integration test for contention r=koorosh a=koorosh This change lowers the latency threshold for which statement is considered slow to make sure it detects contention. Previous value was set to 100ms which is default. New value is set to 30ms to be the same as overridden value in other tests. Release note: None Resolves: cockroachdb#108020 Co-authored-by: Andrii Vorobiov <[email protected]>
2 parents a1c86ea + 9359af0 commit 5cfe9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/sqlstats/insights/integration/insights_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ func TestInsightsIntegrationForContention(t *testing.T) {
523523
require.NoError(t, err)
524524

525525
// Enable detection by setting a latencyThreshold > 0.
526-
latencyThreshold := 100 * time.Millisecond
526+
latencyThreshold := 30 * time.Millisecond
527527
insights.LatencyThreshold.Override(ctx, &settings.SV, latencyThreshold)
528528

529529
// Create a new connection, and then in a go routine have it start a transaction, update a row,

0 commit comments

Comments
 (0)