Skip to content

Commit

Permalink
Add check on rebalance interval (#5544) (#5595)
Browse files Browse the repository at this point in the history
(cherry picked from commit fa5c3a3)
  • Loading branch information
all-seeing-code authored Jun 9, 2020
1 parent bfc46c2 commit 680cbb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dgraph/cmd/zero/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ func run() {
return true, true
}
}

if opts.rebalanceInterval <= 0 {
log.Fatalf("ERROR: Rebalance interval must be greater than zero. Found: %d",
opts.rebalanceInterval)
}

grpc.EnableTracing = false
otrace.ApplyConfig(otrace.Config{
DefaultSampler: otrace.ProbabilitySampler(Zero.Conf.GetFloat64("trace"))})
Expand Down

0 comments on commit 680cbb7

Please sign in to comment.