Jonathan Boulle
4e6cbc937e
*: change remaining 0.5 references -> 2.0
2014-12-18 16:14:42 -08:00
Xiang Li
c27c288bef
etcdserver: update stats when become leader
2014-12-15 17:02:48 -08:00
Xiang Li
04522baeee
etcdserver: fix leader stats
2014-12-15 16:50:03 -08:00
Xiang Li
53bf7e4b5e
wal: rename openAtIndex -> open; OpenAtIndexUntilUsing -> openNotInUse
2014-12-14 19:33:06 -08:00
Xiang Li
ea94d19147
*: lock the in using files; do not purge locked the wal files
2014-12-14 19:27:22 -08:00
Yicheng Qin
dcf34c0ab4
Merge pull request #1938 from yichengq/262
...
etcdserver: protect the sender map in SendHub
2014-12-15 10:41:52 +08:00
Yicheng Qin
ceb077424d
etcdserver: protect the sender map in SendHub
2014-12-15 10:37:41 +08:00
Xiang Li
d86603840d
rafthttp: better logging
2014-12-14 09:50:59 -08:00
Xiang Li
4724cbbe2c
etcdserver: one line
2014-12-11 22:17:36 -08:00
Xiang Li
935f7128a9
etcdserver: move stats inferface to stats pkg
2014-12-11 22:14:05 -08:00
Barak Michener
5f16fab541
Merge pull request #1915 from barakmich/1834
...
Return Unknown instead of NotExist
2014-12-11 13:49:26 -05:00
Barak Michener
cf7690cb51
detect more cases of empty directories and actual errors
2014-12-11 13:37:32 -05:00
Xiang Li
c26542b7f2
Merge pull request #1913 from xiang90/lazy_snap_dir
...
etcdserver: create snap dir until start the node
2014-12-11 09:39:51 -08:00
Xiang Li
836ccabad2
etcdserver: create snap dir until start the node
2014-12-11 09:25:18 -08:00
Yicheng Qin
4777cba995
Merge pull request #1898 from robszumski/improve-logging
...
Improve logging for etcdserver and rafthttp
2014-12-10 10:46:47 -08:00
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
Rob Szumski
13f3158728
etcdserver: improve discovery ignore warning
2014-12-09 15:57:25 -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
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
9c8f5c9535
Merge pull request #1891 from yichengq/257
...
etcdserver: init state before run loop correctly
2014-12-08 16:38:33 -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
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
Yicheng Qin
771ff4589d
etcdserver: not add self into sendhub when new server
2014-12-05 00:18:40 -08:00
Yicheng Qin
1d1c2ff834
Merge pull request #1841 from yichengq/246
...
etcdserver: close storage when stop
2014-12-04 15:36:24 -08:00
Yicheng Qin
a7bc03b42b
etcdserver: close storage when stop
2014-12-04 15:16:22 -08:00
Xiang Li
88e2fab572
Merge pull request #1859 from xiang90/pause_test
...
*: add pauseMember test
2014-12-04 15:11:59 -08:00
Veres Lajos
3de2ab2c04
*: typofixes
...
https://github.com/vlajos/misspell_fixer
2014-12-04 22:51:19 +00:00
Xiang Li
151f043414
*: add pauseMember test
2014-12-04 14:22:43 -08:00
Yicheng Qin
fa292391d8
etcdserver: close idle connections when stop sendhub
2014-12-02 00:08:47 -08:00
Xiang Li
7beac083ff
Merge pull request #1810 from xiang90/purge
...
*: support purging old wal/snap files
2014-12-01 12:05:05 -08:00
Xiang Li
d3db010190
*: support purging old wal/snap files
2014-12-01 11:50:17 -08:00
Xiang Li
bc5acd3c42
etcdserver: log snapshot event
2014-11-30 12:10:20 -08:00
Xiang Li
e23f9e76d1
raft: do not applysnapshot in raft
2014-11-26 10:59:13 -08:00
Xiang Li
9df0e7715d
raft: do not panic on out of date compaction
2014-11-25 15:14:39 -08:00
Xiang Li
01cbcce8ba
etcdserver: do not applySnapshot twice
2014-11-25 14:53:49 -08:00
Xiang Li
74d8c7f457
etcdserver: cleanup main loop
2014-11-25 14:38:18 -08:00
Yicheng Qin
7e6e305c4f
Merge branch 'log_interface'
...
Conflicts:
raft/raft.go
2014-11-25 14:22:11 -08:00
Yicheng Qin
a13d5a70ff
etcdserver: save snapshot before entries
2014-11-25 12:39:15 -08:00
Owen Smith
c67b937d62
etcdserver: truncate WAL from correct index when forcing new cluster
...
When loading from a backup with a snapshot and WAL, the length of WAL entries
can be lower than the current index integer value, causing a panic when
slicing off uncommitted entries. This looks for WAL entries higher than
the current index before slicing.
2014-11-25 16:46:56 +00:00
Yicheng Qin
54e1237271
etcdserver: panic when snapshot on raft storage
...
Snapshot on raft storage should always succeed. If there is an error, it must
be internal fault and needs stack info to debug.
2014-11-24 21:22:49 -08:00
Yicheng Qin
1b038da18a
etcdserver: init snapi when init appliedi
2014-11-24 21:19:30 -08:00
Yicheng Qin
bd9e93eeea
etcdserver: remove finished TODO for raftStorage.Compact
2014-11-24 21:10:53 -08:00
Yicheng Qin
185d37c333
etcdserver: not load dummy entry from the wal
2014-11-24 20:51:04 -08:00
Xiang Li
d69e4dbe6d
etcdserver: initial index to 1
2014-11-24 14:57:08 -08:00
Xiang Li
453133977d
etcdserver: save snapshot only if the index is greater than previous snap index
2014-11-24 14:47:59 -08:00
Xiang Li
4b7af29c37
etcdserver: fix TriggerSnap test.
...
Sleep for millisecond to allow the server to apply the first nop and
first put separately.
2014-11-24 14:47:49 -08:00