From b474a218181f5812e6c3b33b8ec16b1d8613f819 Mon Sep 17 00:00:00 2001 From: Animesh Chandra Pathak Date: Tue, 3 Sep 2019 17:03:30 +0530 Subject: [PATCH] Change warning time (#3901) --- dgraph/cmd/zero/raft.go | 2 +- worker/draft.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dgraph/cmd/zero/raft.go b/dgraph/cmd/zero/raft.go index 83b0fdbc4f5..be3db53eb17 100644 --- a/dgraph/cmd/zero/raft.go +++ b/dgraph/cmd/zero/raft.go @@ -725,7 +725,7 @@ func (n *node) Run() { timer.Record("advance") span.End() - if timer.Total() > 100*time.Millisecond { + if timer.Total() > 200*time.Millisecond { glog.Warningf( "Raft.Ready took too long to process: %s."+ " Num entries: %d. MustSync: %v", diff --git a/worker/draft.go b/worker/draft.go index 2f1f7d21ff7..a2f674fab38 100644 --- a/worker/draft.go +++ b/worker/draft.go @@ -954,7 +954,7 @@ func (n *node) Run() { glog.Errorf("Error recording stats: %+v", err) } } - if timer.Total() > 100*time.Millisecond { + if timer.Total() > 200*time.Millisecond { glog.Warningf( "Raft.Ready took too long to process: %s"+ " Num entries: %d. MustSync: %v",