Skip to content

Commit

Permalink
Merge aa4f892 into blathers/backport-release-25.1-139273
Browse files Browse the repository at this point in the history
  • Loading branch information
blathers-crl[bot] authored Jan 17, 2025
2 parents 1481e1e + aa4f892 commit c67e2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/roachtest/tests/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"strings"
"time"

"github.com/cockroachdb/cockroach/pkg/base"
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/cluster"
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/option"
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/registry"
Expand Down Expand Up @@ -611,7 +612,7 @@ func registerKVGracefulDraining(r registry.Registry) {
}()

verifyQPS := func(ctx context.Context) error {
if qps := roachtestutil.MeasureQPS(ctx, t, c, time.Second, c.Range(1, nodes-1)); qps < expectedQPS {
if qps := roachtestutil.MeasureQPS(ctx, t, c, base.DefaultMetricsSampleInterval, c.Range(1, nodes-1)); qps < expectedQPS {
return errors.Newf(
"QPS of %.2f at time %v is below minimum allowable QPS of %.2f",
qps, timeutil.Now(), expectedQPS)
Expand Down

0 comments on commit c67e2f9

Please sign in to comment.