Skip to content

Commit a5ab035

Browse files
author
Alexander Morozov
committed
change limits
1 parent 057e5df commit a5ab035

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func DefaultConfig() (Config, error) {
211211
ManagerSwitchover: false,
212212
ForceSwitchover: false,
213213
SwitchoverTimeout: 30 * time.Minute,
214-
SwitchoverMaxAttempts: 3,
214+
SwitchoverMaxAttempts: 60,
215215
ReplicationConvergenceTimeoutSwitchover: 300 * time.Second,
216216
DSNSettings: "?autocommit=1&sql_log_off=1",
217217
OptimizationConfig: OptimizationConfig{

tests/features/switchover_from.84.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Feature: manual switchover from old master
112112
}
113113
"""
114114
# after switchover_max_attempts unsuccessful attempts mysync stops retrying and rejects the switchover
115-
Then zookeeper node "/test/last_rejected_switch" should match json within "60" seconds
115+
Then zookeeper node "/test/last_rejected_switch" should match json within "250" seconds
116116
"""
117117
{
118118
"from": "mysql1",

0 commit comments

Comments
 (0)