Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
123820: roachtest: turn on DistSender circuit breakers for failover chaos tests r=nicktrav,andrewbaptist a=arulajmani

Failover chaos tests create asymetric partitions where DistSender circuit breakers are useful. It prevents failure modes such as cockroachdb#123736 (comment).

Fixes cockroachdb#123736

Release note: None

Co-authored-by: Arul Ajmani <[email protected]>
  • Loading branch information
craig[bot] and arulajmani committed May 10, 2024
2 parents 16d4175 + b66922d commit 6e1b82d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/roachtest/tests/failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ func runFailoverChaos(ctx context.Context, t test.Test, c cluster.Cluster, readO
settings.Env = append(settings.Env, "COCKROACH_ENABLE_UNSAFE_TEST_BUILTINS=true")
settings.Env = append(settings.Env, "COCKROACH_SCAN_MAX_IDLE_TIME=100ms") // speed up replication

// DistSender circuit breakers are useful for these chaos tests. Turn them on.
// TODO(arul): this can be removed if/when we turn on DistSender circuit
// breakers for all ranges by default.
settings.ClusterSettings["kv.dist_sender.circuit_breakers.mode"] = "all ranges"

m := c.NewMonitor(ctx, c.Range(1, 9))

failers := []Failer{}
Expand Down

0 comments on commit 6e1b82d

Please sign in to comment.