etcdserver: discard messages if sender reaches max serving
It is the correct thing to do to ensure that the communication is full of out-of-date messages. It results in that integration testing is very easy to throw MsgProp away, and makes client wait until 5 min timeout. Sync interval and heartbeat are increased to alleviate the traffic.
This commit is contained in:
@ -36,7 +36,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
tickDuration = 5 * time.Millisecond
|
||||
tickDuration = 10 * time.Millisecond
|
||||
clusterName = "etcd"
|
||||
)
|
||||
|
||||
@ -181,7 +181,7 @@ func (m *member) Launch(t *testing.T) {
|
||||
t.Fatalf("failed to initialize the etcd server: %v", err)
|
||||
}
|
||||
m.s.Ticker = time.Tick(tickDuration)
|
||||
m.s.SyncTicker = time.Tick(tickDuration)
|
||||
m.s.SyncTicker = time.Tick(10 * tickDuration)
|
||||
m.s.Start()
|
||||
|
||||
for _, ln := range m.PeerListeners {
|
||||
|
Reference in New Issue
Block a user