From 0ca6be31f88ccb9255d9ba375d7dd75d21e2ed5e Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 29 May 2015 18:48:56 -0700 Subject: [PATCH] raft: remove wrong invariant The commit > unstable might not true for follower. The leader only need to ensure the entry is stored on the majority of nodes to commit an entry. So the minority of the cluster might receive commit > unstable append request. This is normal. --- raft/log.go | 1 - 1 file changed, 1 deletion(-) diff --git a/raft/log.go b/raft/log.go index ad195c7ec..5c61d1c31 100644 --- a/raft/log.go +++ b/raft/log.go @@ -31,7 +31,6 @@ type raftLog struct { // committed is the highest log position that is known to be in // stable storage on a quorum of nodes. - // Invariant: committed < unstable committed uint64 // applied is the highest log position that the application has // been instructed to apply to its state machine.