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
Jonathan Boulle
aca58ec605
Merge pull request #1655 from jonboulle/wal_logic
...
etcdserver: collapse shared readWAL logic
2014-11-08 17:07:43 -08:00
Jonathan Boulle
41757e7f78
etcdserver: collapse shared readWAL logic
2014-11-08 17:07:05 -08:00
Yicheng Qin
f333c7ff87
Merge pull request #1668 from yichengq/214
...
integration: wait cluster to be stable before return launch
2014-11-08 15:54:31 -08:00
Yicheng Qin
071ebb9feb
integration: wait cluster to be stable before return launch
...
The wait ensures that cluster goes into the stable stage, which means that
leader has been elected and starts to heartbeat to followers.
This makes future client requests always handled in time, and there is no
need to retry sending requests.
2014-11-08 15:39:10 -08:00
Yicheng Qin
aa72cda7b2
Merge pull request #1667 from yichengq/213
...
etcdserver: not get cluster info from self peer urls
2014-11-08 14:05:20 -08:00
Yicheng Qin
4b9c3a9102
etcdserver: not get cluster info from self peer urls
...
Self peer urls have not started to serve at the time that it tries to
get cluster info, so it is useless to get cluster info from self peer
urls.
2014-11-08 13:52:48 -08:00
Brandon Philips
0b493ac8d4
version: bump to alpha.2
v0.5.0-alpha.2
2014-11-07 16:44:02 -08:00
Jonathan Boulle
c73d41d98b
Merge pull request #1658 from jonboulle/doc_etcdctl_backup
...
Add doc for backup and force-new-cluster
2014-11-07 16:39:45 -08:00
Jonathan Boulle
3d2f65fc0d
docs: clarify rewriting
2014-11-07 16:35:33 -08:00
Jonathan Boulle
6b283f6ea1
docs: reword failure descriptions
2014-11-07 16:34:19 -08:00
Jonathan Boulle
4367c9a1db
docs: no need to stop etcd while doing backup
2014-11-07 16:25:38 -08:00
Yicheng Qin
c9894687fc
Merge pull request #1662 from yichengq/211
...
etcdserver: fix data race in cluster
2014-11-07 16:20:59 -08:00
Jonathan Boulle
a56fa60fb4
doc: add backup/restore guide
2014-11-07 16:14:45 -08:00
Yicheng Qin
014ef0f52d
etcdserver: fix data race in cluster
...
The data race happens when etcd updates member attributes and fetches
member info in http handler at the same time.
2014-11-07 16:13:07 -08:00
Yicheng Qin
2fc47034ee
Merge pull request #1660 from yichengq/209
...
etcdserver: not add sender when it has existed
2014-11-07 16:10:50 -08:00
Yicheng Qin
46cbfbc630
etcdserver: not add sender when it has existed
2014-11-07 14:05:00 -08:00