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
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
Xiang Li
182c30a41a
raft: refactor logging at node level
2014-12-04 21:03:06 -08:00
Yicheng Qin
1b43f60e0e
Merge pull request #1857 from yichengq/248
...
integration: add TestProgressWithMajority
2014-12-04 18:39:39 -08:00
Yicheng Qin
6d046d94d6
integration: improve member tests
2014-12-04 17:37:44 -08:00
Xiang Li
933a9f3e3f
Merge pull request #1863 from xiang90/usage
...
etcdmain: format usage
2014-12-04 17:37:20 -08:00
Xiang Li
a1f648e5db
etcdmain: format usage
2014-12-04 17:21:23 -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
29982dc935
Merge pull request #1839 from yichengq/245
...
wal: save latest state into new WAL
2014-12-04 15:21:27 -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
Xiang Li
197e6b1b20
Merge pull request #1858 from vlajos/typofixes-vlajos-20141204
...
typofixes - https://github.com/vlajos/misspell_fixer
2014-12-04 14:52:27 -08:00
Veres Lajos
3de2ab2c04
*: typofixes
...
https://github.com/vlajos/misspell_fixer
2014-12-04 22:51:19 +00:00
Yicheng Qin
ca32a5fe9b
Merge pull request #1860 from yichengq/249
...
integration: fix possible early fire in TestWatch
2014-12-04 14:48:39 -08:00
Yicheng Qin
356146b5a0
integration: fix possible early fire in TestWatch
2014-12-04 14:34:20 -08:00
Xiang Li
151f043414
*: add pauseMember test
2014-12-04 14:22:43 -08:00
Yicheng Qin
af0f34c595
wal: save latest state into new WAL
...
So we could always read out state when open at valid index.
2014-12-04 12:19:21 -08:00
Xiang Li
a47690dd30
Merge pull request #1845 from xiang90/testunstable
...
raft: add TestUnstableTruncateAndAppend
2014-12-04 11:03:37 -08:00
Xiang Li
4ebd3a0b10
Merge pull request #1852 from xiang90/heartbeat
...
raft: add msgHeartbeat type
2014-12-04 10:25:46 -08:00
Yicheng Qin
72d2597f3d
Merge pull request #1854 from yichengq/247
...
integration: not check whether readloop goroutines exist
2014-12-04 10:16:04 -08:00
Xiang Li
149389cbfa
raft: add msgHeartbeat type
2014-12-04 08:29:31 -08:00
Yicheng Qin
719a634fdc
integration: not check whether readloop goroutines exist
...
Readloop goroutines may be left from time to time. Skip the check for now,
and will dig into it when we have time.
2014-12-04 00:51:31 -08:00
Yicheng Qin
e344774c10
Merge pull request #1850 from yichengq/247
...
raft: return 0 for term of compacted index
2014-12-03 17:23:32 -08:00
Yicheng Qin
34a468de36
raft: return 0 for term of compacted index
...
It is necessary to make this check because of the following case:
1. memory storage contains ents from index 0 to 50, and unstable has
ents from index 50 to 60.
2. raft receives an incoming snapshot with index 100.
3. raft restores its unstable to 100, but has not applied snapshot on memory storage.
4. raft receives an out-dated MsgApp from index 60.
5. raft finds the term of index 60 to check the match.
6. raft asks memory storage about the term of index 60 after it failed to get
it from unstable.
7. memory storage panics because it knows nothing about index 60.
2014-12-03 17:22:36 -08:00