Skip to content

Commit c69d253

Browse files
committed
roachtest: increase timeout for network_logging to 60s
Addresses: cockroachdb#108088 The new network_logging roachtest sets a pgclient timeout of 10s to attempt detecting deadlocks. This timeout was hit fairly easily during the nightly runs. This is an indication that our 10s timeout is too aggressive. This PR changes the timeout from 10s to 60s which still achieves the original aim without being so aggressive. Release note: none
1 parent d6f6de2 commit c69d253

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/roachtest/tests/network_logging.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ func registerNetworkLogging(r registry.Registry) {
9090
// URLs already are wrapped in '', but we need to add a timeout flag.
9191
// Trim the trailing ' and re-add with the flag.
9292
trimmed := strings.TrimSuffix(url, "'")
93-
workloadPGURLs[i] = fmt.Sprintf("%s&statement_timeout=10s'", trimmed)
93+
// Define a 60s client statement timeout.
94+
workloadPGURLs[i] = fmt.Sprintf("%s&statement_timeout=60000'", trimmed)
9495
}
9596

9697
// Init & run a workload on the workload node.

0 commit comments

Comments
 (0)