Xiang Li
92096dfdc3
*: print out configuration when necessary
2014-11-13 10:46:42 -08:00
Jonathan Boulle
eb66d2b0eb
Merge pull request #1699 from jonboulle/node_stop
...
raft: block Stop() on n.done, support idempotency
2014-11-12 16:26:54 -08:00
Xiang Li
634011eb8b
Merge pull request #1698 from xiang90/node_propose
...
raft: add a test for node proposal
2014-11-12 16:02:57 -08:00
Jonathan Boulle
2cedf127d4
raft: block Stop() on n.done, support idempotency
2014-11-12 15:54:45 -08:00
Xiang Li
68ab7e69e1
raft: add a test for node proposal
2014-11-12 15:44:24 -08:00
Yicheng Qin
ec7793557a
Merge pull request #1664 from yichengq/212
...
integration: add AddMember test
2014-11-12 15:04:30 -08:00
Xiang Li
b271e88c20
Merge pull request #1696 from xiang90/testnodetick
...
raft: add a test for node.Tick
2014-11-12 14:38:07 -08:00
Yicheng Qin
bc9de47a9a
integration: add increase cluster size test
2014-11-12 14:33:18 -08:00
Jonathan Boulle
fc21f299b1
Merge pull request #1676 from jonboulle/doc_initial_cluster
...
etcdserver: validate and document initial-advertise-peer-urls
2014-11-12 14:13:03 -08:00
Jonathan Boulle
5cef3d888a
integration: remove unnecessary t.Testing argument
2014-11-12 14:11:56 -08:00
Xiang Li
d834324e97
raft: stop the node synchronously
2014-11-12 14:06:52 -08:00
Jonathan Boulle
d1ae276434
integration: fix test to propagate NewServer errors
2014-11-12 13:12:49 -08:00
Jonathan Boulle
1197c1f965
etcdserver: move peer URLs check to config
2014-11-12 13:12:49 -08:00
Jonathan Boulle
3f358b6d5d
etcdserver: ensure initial-advertise-peer-urls match initial-cluster
...
This adds a check to setupCluster to ensure that the list of URLs
specified in `initial-advertise-peer-urls` matches those configured in
`initial-cluster` for this node. Also updates the documentation to
clarify this and address some changes in wording.
2014-11-12 12:54:35 -08:00
Xiang Li
45c36a0808
raft: add a test for node.Tick
2014-11-12 11:51:51 -08:00
Xiang Li
0772987128
Merge pull request #1695 from xiang90/nodestart
...
raft: add comment string for TestNodeStart
2014-11-12 11:41:03 -08:00
Xiang Li
fe0325fce7
raft: add comment string for TestNodeStart
2014-11-12 11:40:40 -08:00
Xiang Li
f1f796f2fc
Merge pull request #1694 from xiang90/use_member
...
etcdserver: use member instead of node at etcd level
2014-11-12 10:48:45 -08:00
Xiang Li
0aa8258d29
etcdserver: use member instead of node at etcd level
2014-11-12 10:45:35 -08:00
Yicheng Qin
fb93e3fa00
Merge pull request #1689 from yichengq/219
...
raft: update unstable when calling stableTo with 0
2014-11-12 10:41:40 -08:00
Xiang Li
d494014782
Merge pull request #1679 from xiang90/peerurl
...
update peer url
2014-11-12 10:21:13 -08:00
Yicheng Qin
48644f465d
Merge pull request #1692 from yichengq/221
...
raft: nodes return sorted ids
2014-11-12 10:08:19 -08:00
Yicheng Qin
78cbb1512c
raft: nodes return sorted ids
...
This makes raft.softState return the same result when its soft state is
not changed.
2014-11-11 22:58:15 -08:00
Yicheng Qin
7dba92dd53
raft: update unstable when calling stableTo with 0
...
It should update unstable in this case because it may happen that raft
only writes entry 0 into stable storage.
2014-11-11 17:20:31 -08:00
Xiang Li
3f3fc05c8f
Merge pull request #1687 from xiang90/fix_listener
...
Fix listener
2014-11-11 13:10:51 -08:00
Xiang Li
5967794009
*: support updating advertise-peer-url
...
Users might want to update the peerurl of the etcd member in several cases.
For example, if the IP address of the physical machine etcd running on is
changed, user need to update the adversite-pee-rurl accordingly.
This commit makes etcd support updating the advertise-peer-url of its members.
2014-11-11 12:07:03 -08:00
Xiang Li
b6f0c789b8
transport: create a tls listener only if the tlsInfo is not empty and the scheme is HTTPS
2014-11-11 11:51:57 -08:00
Xiang Li
b87243d827
Merge pull request #1688 from xiang90/cluster_test
...
Cluster test
2014-11-11 11:36:08 -08:00
Xiang Li
67a0de4bbc
etcdserver: use member pointer for all tests
2014-11-11 11:20:56 -08:00
Xiang Li
e4931e0c47
etcdserver: remove unnecessary newTestMemberp
2014-11-11 11:09:33 -08:00
Xiang Li
077e144e8a
etcdserver: move newTestMember* to member_test.go
2014-11-11 11:02:50 -08:00
Xiang Li
4b2d6fc70b
Merge pull request #1686 from xiang90/proto
...
raftpb: fix proto
2014-11-10 17:08:24 -08:00
Xiang Li
f64963de88
raftpb: fix proto
2014-11-10 17:05:30 -08:00
Yicheng Qin
246ba4301d
Merge pull request #1682 from yichengq/217
...
integration: rewrite the way to check cluster make progress
2014-11-10 16:58:17 -08:00
Yicheng Qin
24edf57e12
integration: newMember -> mustNewMember
2014-11-10 16:53:15 -08:00
Yicheng Qin
b1c3c4a202
integration: rewrite the way to check cluster make progress
2014-11-10 16:53:07 -08:00
Xiang Li
50ffd87831
Merge pull request #1685 from xiang90/proxy
...
proxy: return JSON errors
2014-11-10 16:51:25 -08:00
Xiang Li
424377f859
proxy: add a todo for logging
2014-11-10 16:37:15 -08:00
Xiang Li
6fa8f77638
proxy: return JSON errors
2014-11-10 15:56:42 -08:00
Xiang Li
ac77971f99
Merge pull request #1671 from xiang90/proxy_doc
...
doc: add doc for proxy
2014-11-10 13:39:03 -08:00
Jonathan Boulle
645cfb8355
Merge pull request #1681 from jonboulle/fix_exit
...
etcdmain: do not exit inappropriately
2014-11-10 12:34:36 -08:00
Jonathan Boulle
e1e454f138
etcdmain: do not exit inappropriately
2014-11-10 12:34:14 -08:00
Xiang Li
a0002d0598
doc: add fallback to discovery section in clustering.md
2014-11-10 12:14:19 -08:00
Jonathan Boulle
99aa2caa3d
Merge pull request #1680 from jonboulle/fix_errors
...
etcdmain: actually return errors
2014-11-10 12:04:05 -08:00
Jonathan Boulle
8799679083
etcdmain: actually return errors
2014-11-10 11:59:59 -08:00
Yicheng Qin
2dcd8213e4
Merge pull request #1670 from yichengq/207
...
integration: add basic discovery tests
2014-11-10 10:30:20 -08:00
Yicheng Qin
5396037450
integration: add basic discovery tests
2014-11-10 10:04:30 -08:00
Xiang Li
1e299d8232
doc: add doc for proxy
2014-11-08 19:59:24 -08:00
Jonathan Boulle
8870b739b3
Merge pull request #1661 from jonboulle/wal_errors
...
wal: propagate errors
2014-11-08 17:16:48 -08:00
Jonathan Boulle
5a964f49a5
wal: propagate errors
2014-11-08 17:16:23 -08:00