Skip to content

Commit

Permalink
refactor: reduce waiting time for failover
Browse files Browse the repository at this point in the history
Now all actions will be retried for ever until timeout. So it is ok to use a smaller timeout. If the operation is not complete with in that time, it will be retried anyway.
  • Loading branch information
deepthidevaki committed Apr 3, 2024
1 parent b0110f6 commit 60eeca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-chaos/cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func forceFailover(flags *Flags) error {
changeResponse, err := sendScaleRequest(port, brokersInRegion, true, -1)
ensureNoError(err)

timeout := time.Minute * 25
timeout := time.Minute * 5
err = waitForChange(port, changeResponse.ChangeId, timeout)
ensureNoError(err)

Expand Down

0 comments on commit 60eeca5

Please sign in to comment.