Skip to content

Commit

Permalink
*: the value of tikv-client.store-liveness-timeout should not less th…
Browse files Browse the repository at this point in the history
…an 0 (#24244)
  • Loading branch information
Howie59 authored May 12, 2021
1 parent 0179854 commit 081291b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func setGlobalVars() {
kvcache.GlobalLRUMemUsageTracker.AttachToGlobalTracker(executor.GlobalMemoryUsageTracker)

t, err := time.ParseDuration(cfg.TiKVClient.StoreLivenessTimeout)
if err != nil {
if err != nil || t < 0 {
logutil.BgLogger().Fatal("invalid duration value for store-liveness-timeout",
zap.String("currentValue", cfg.TiKVClient.StoreLivenessTimeout))
}
Expand Down

0 comments on commit 081291b

Please sign in to comment.