Skip to content

Commit

Permalink
Change warning time (#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh2049 authored Sep 3, 2019
1 parent 77be611 commit b474a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dgraph/cmd/zero/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion worker/draft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b474a21

Please sign in to comment.