Skip to content

Commit

Permalink
Merge branch 'release/v20.03' of https://github.com/dgraph-io/dgraph
Browse files Browse the repository at this point in the history
…into release/v20.03
  • Loading branch information
parasssh committed Apr 8, 2020
2 parents d6f6519 + ed26054 commit 5399a4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ func BlockingStop() {
glog.Infof("Stopping group...")
groups().closer.SignalAndWait()

// Update checkpoint so that proposals are not replayed after the server restarts.
glog.Infof("Updating RAFT state before shutting down...")
if err := groups().Node.updateRaftProgress(); err != nil {
glog.Warningf("Error while updating RAFT progress before shutdown: %v", err)
}

glog.Infof("Stopping node...")
groups().Node.closer.SignalAndWait()

Expand Down

0 comments on commit 5399a4e

Please sign in to comment.