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
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
Xiang Li
ddd9cb7345
raft: add TestUnstableTruncateAndAppend
2014-12-03 16:37:19 -08:00
Xiang Li
2c0d323318
Merge pull request #1848 from xiang90/raft_log
...
raft: fix log format in sendAppend
2014-12-03 16:15:12 -08:00
Xiang Li
2caf4f5f22
raft: fix log format in sendAppend
2014-12-03 16:11:44 -08:00
Xiang Li
a426b310fc
Merge pull request #1846 from xiang90/raft
...
raft: more logging
2014-12-03 14:59:06 -08:00
Xiang Li
06a5892a18
raft: more logging
2014-12-03 14:46:24 -08:00
Xiang Li
a36d07047a
Merge pull request #1844 from xiang90/testunstable
...
Testunstable
2014-12-03 13:47:28 -08:00
Xiang Li
8074a5b5a4
raft: fix error message format in test
2014-12-03 13:36:47 -08:00
Xiang Li
37ab463e86
raft: add TestUnstableStableTo
2014-12-03 13:26:35 -08:00
Xiang Li
7703d4942c
raft: add TestUnstableRestore
2014-12-03 13:03:56 -08:00
Xiang Li
be60c88603
Merge pull request #1842 from xiang90/unstable_test
...
raft: add TestUnstableFirstIndex
2014-12-03 11:50:39 -08:00
Xiang Li
256e51874e
Merge pull request #1843 from yichengq/248
...
raft: print out term in decimal format
2014-12-03 11:34:55 -08:00
Yicheng Qin
63ed202db6
raft: print out term in decimal format
2014-12-03 11:33:51 -08:00
Xiang Li
48f75ca645
raft: add TestUnstableMaybeTerm
2014-12-03 11:30:59 -08:00
Xiang Li
058356d9bd
raft: add TestUnstableLastIndex
2014-12-03 11:11:31 -08:00
Xiang Li
98ebfa3468
raft: add TestUnstableFirstIndex
2014-12-03 11:11:11 -08:00
Yicheng Qin
70bd26a652
Merge pull request #1815 from ravigadde/patch-1
...
docs: add etcd-lock into libraries-and-tools.md
2014-12-02 22:45:52 -08:00
ravigadde
16f9fd63ab
doc: add etcd-lock into libraries-and-tools.md
...
Lock implementation for etcd. It has three go routines:
a) acquire - loop that watches for the lock to be free and tries to acquire it.
b) watch - to watch for lock changes
c) refresh - to refresh the ttl when the lock is acquired
All the changes in lock ownership are notified on the events channel. Any feedback welcome!
2014-12-02 22:39:06 -08:00