Skip to content

Commit

Permalink
config(ticdc): use 1 minute kv retry time (pingcap#5499)
Browse files Browse the repository at this point in the history
  • Loading branch information
overvenus committed Jun 21, 2022
1 parent 3a725a6 commit 7f842a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestParseCfg(t *testing.T) {
WorkerConcurrent: 8,
WorkerPoolSize: 0,
RegionScanLimit: 40,
RegionRetryDuration: config.TomlDuration(25 * time.Second),
RegionRetryDuration: config.TomlDuration(time.Minute),
},
Debug: &config.DebugConfig{
EnableTableActor: false,
Expand Down Expand Up @@ -454,7 +454,7 @@ cert-allowed-cn = ["dd","ee"]
WorkerConcurrent: 8,
WorkerPoolSize: 0,
RegionScanLimit: 40,
RegionRetryDuration: config.TomlDuration(25 * time.Second),
RegionRetryDuration: config.TomlDuration(time.Minute),
},
Debug: &config.DebugConfig{
EnableTableActor: false,
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config_test_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const (
"worker-concurrent": 8,
"worker-pool-size": 0,
"region-scan-limit": 40,
"region-retry-duration": 25000000000
"region-retry-duration": 60000000000
},
"debug": {
"enable-table-actor": false,
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ var defaultServerConfig = &ServerConfig{
WorkerPoolSize: 0, // 0 will use NumCPU() * 2
RegionScanLimit: 40,
// The default TiKV region election timeout is [10s, 20s],
// Use 25 seconds to cover region leader missing.
RegionRetryDuration: TomlDuration(25 * time.Second),
// Use 1 minute to cover region leader missing.
RegionRetryDuration: TomlDuration(time.Minute),
},
Debug: &DebugConfig{
EnableTableActor: false,
Expand Down

0 comments on commit 7f842a0

Please sign in to comment.