Nikhil Sarda
a852936a59
etcdserver: removed an unhelpful test failure message
...
this commit changes instances of "blah" in a test to more
descriptive messages
2014-12-09 21:45:50 -08:00
Xiang Li
e4c0f5c1a8
Merge pull request #1895 from xiang90/snap_nodes
...
etcd: update conf when apply the confChange entry
2014-12-09 11:45:01 -08:00
Xiang Li
a5efbf826d
raft: drop nodes in softState
2014-12-09 11:43:52 -08:00
Yicheng Qin
0472ddf05f
Merge pull request #1890 from yichengq/259
...
raft: set raft.Commit too when setting raftLog.committed
2014-12-09 11:28:05 -08:00
Xiang Li
29d7a2a558
etcd: update conf when apply the confChange entry
2014-12-08 23:37:07 -08:00
Yicheng Qin
4804c45e14
raft: set raft.Commit too when setting raftLog.committed
2014-12-08 22:35:55 -08:00
Yicheng Qin
22dd3b039c
Merge pull request #1888 from yichengq/258
...
raft: increase term to 1 before append initial entries
2014-12-08 22:27:23 -08:00
Yicheng Qin
7317834417
raft: increase term to 1 before append initial entries
...
Because the term of new raft is 0, it is weird to have term-1 committed
entries in the log.
2014-12-08 22:21:39 -08:00
Xiang Li
20e2c8f431
Merge pull request #1894 from xiang90/fix_snap
...
snap: error on empty snapshot
2014-12-08 22:02:19 -08:00
Xiang Li
e981dda287
snap: error on empty snapshot
2014-12-08 21:45:28 -08:00
Yicheng Qin
9c8f5c9535
Merge pull request #1891 from yichengq/257
...
etcdserver: init state before run loop correctly
2014-12-08 16:38:33 -08:00
Xiang Li
325e768c7b
Merge pull request #1889 from xiang90/chord_raft
...
Chord raft
2014-12-08 16:35:42 -08:00
Yicheng Qin
13814c9d7d
etcdserver: init state before run loop correctly
2014-12-08 16:13:16 -08:00
Yicheng Qin
7e06d85651
etcdserver: apply entries when it is not empty
...
Or it updates appliedi wrongly.
2014-12-08 15:56:38 -08:00
Xiang Li
ba45637ba3
raft: group step funcs
2014-12-08 15:29:54 -08:00
Xiang Li
099f4f10ea
raft: one line
2014-12-08 15:28:48 -08:00
Yicheng Qin
dfbe16445d
Merge pull request #1882 from yichengq/256
...
etcdserver: correct the log about recovering from snapshot
2014-12-08 15:25:19 -08:00
Xiang Li
8ead428e76
raft: group getter funcs
2014-12-08 15:24:34 -08:00
Xiang Li
f73d059d80
raft: group configuration related funcs
2014-12-08 15:23:21 -08:00
Xiang Li
25313b1210
raft: move poll close to campaign
2014-12-08 15:21:57 -08:00
Xiang Li
d52c66ad42
raft: removed unused func
2014-12-08 15:20:43 -08:00
Xiang Li
a5ec7040e0
Merge pull request #1887 from xiang90/raft_logging
...
raft: refactoring logging
2014-12-08 15:17:20 -08:00
Xiang Li
62ed1de10d
raft: refactoring logging
2014-12-08 15:16:02 -08:00
Yicheng Qin
71f3b80fbe
etcdserver: check recovery error when new server
2014-12-08 14:55:23 -08:00
Yicheng Qin
8c338ffcc7
etcdserver: correct the log about recovering from snapshot
2014-12-08 14:51:42 -08:00
Xiang Li
b4773a15b2
Merge pull request #1886 from xiang90/raft_log
...
raft: print out log when creating a newraft
2014-12-08 14:47:04 -08:00
Xiang Li
6cb7f2d9e9
raft: print out log when creating a newraft
2014-12-08 14:37:39 -08:00
Xiang Li
576aba700e
Merge pull request #1885 from xiang90/doc
...
Doc
2014-12-08 14:16:16 -08:00
Xiang Li
8065206839
doc: fix typo
2014-12-08 14:15:37 -08:00
Xiang Li
cd878ea9a9
doc: add a link to the peer url section in other_apis.go
2014-12-08 14:14:33 -08:00
Xiang Li
091cc237e3
Merge pull request #1883 from xiang90/member_migration
...
doc: add doc for member migration
2014-12-08 14:09:09 -08:00
Xiang Li
069578c29c
doc: add doc for member migration
2014-12-08 14:08:01 -08:00
Xiang Li
31b9f712ba
Merge pull request #1879 from xiang90/peer_url_doc
...
doc: add doc for changing peer urls
2014-12-08 13:40:47 -08:00
Xiang Li
706b6f96b3
doc: http status for other_apis.md
2014-12-08 13:10:21 -08:00
Xiang Li
e83e2bff92
doc: refactor other_apis.md
2014-12-08 11:46:24 -08:00
Xiang Li
2b519c90b9
doc: add doc for changing peer urls
2014-12-08 11:43:14 -08:00
Yicheng Qin
f10f7802be
Merge pull request #1874 from bdarnell/bootstrap-apply
...
Pre-apply the bootstrapping ConfChange entries.
2014-12-08 10:52:33 -08:00
Yicheng Qin
f63d51e40f
Merge pull request #1878 from yichengq/253
...
rafthttp: increase sender buffer size
2014-12-07 22:38:50 -08:00
Yicheng Qin
b24d546bd0
rafthttp: increase sender buffer size
...
The buffer size is set big enough to buffer all messages generated in
one second as a follower in good path.
2014-12-07 22:35:50 -08:00
Ben Darnell
ea4d645a83
raft: Ignore redundant addNode calls.
...
This avoids clobbering any state when bootstrapping entries are
applied twice.
2014-12-05 17:15:50 -05:00
Ben Darnell
3d91faf85a
Pre-apply the bootstrapping ConfChange entries.
...
This eliminates the need to fake an ApplyConfChange call before Campaign
in tests.
Fixes #1856 .
2014-12-05 15:35:39 -05:00
Xiang Li
6bfa5d409e
Merge pull request #1872 from xiang90/fix_watcher_race
...
store: fix race in watcher_hub
2014-12-05 12:12:07 -08:00
Xiang Li
793cb095b0
store: fix race in watcher_hub
...
Get the lock before modifing the global objects in the hub.
2014-12-05 12:09:48 -08:00
Xiang Li
c03da80330
Merge pull request #1871 from xiang90/fix_node
...
raft: filter out messages from unknown sender.
2014-12-05 11:50:34 -08:00
Xiang Li
6409a8bf0d
raft: filter out messages from unknow sender.
...
If we cannot find the `m.from` from current peers in the raft and it is a response
message, we should filter it out or raft panics. We are not targetting to avoid
malicious peers.
It has to be done in the raft node layer syncchronously. Although we can check
it at the application layer asynchronously, but after the checking and before
the message going into raft, the raft state machine might make progress and
unfortunately remove the `m.from` peer.
2014-12-05 11:34:56 -08:00
Yicheng Qin
15aed05071
Merge pull request #1869 from yichengq/251
...
etcdserver: not add self into sendhub when new server
2014-12-05 10:09:01 -08:00
Yicheng Qin
771ff4589d
etcdserver: not add self into sendhub when new server
2014-12-05 00:18:40 -08:00
Yicheng Qin
a16dd7ea67
Merge pull request #1861 from yichengq/250
...
wal: sync after writing data to disk in Cut function
2014-12-04 23:49:07 -08:00
Yicheng Qin
b9bf957c6d
wal: sync after writing data to disk in Cut function
2014-12-04 22:56:34 -08:00
Xiang Li
abb72f60bc
Merge pull request #1866 from xiang90/raftnode_log
...
raft: refactor logging at node level
2014-12-04 21:03:32 -08:00