Blake Mizerany
d77773acb3
server: ignore server in build/tests
2014-09-03 09:20:06 -07:00
Blake Mizerany
afc69b6a74
remove osext
2014-09-03 09:20:06 -07:00
Blake Mizerany
ecc0f97e27
remove go-log
2014-09-03 09:20:06 -07:00
Blake Mizerany
e2798405f6
remove test.sh
2014-09-03 09:20:06 -07:00
Blake Mizerany
7b2474681b
remove pkg/http
2014-09-03 09:20:06 -07:00
Blake Mizerany
0ecbe891b5
remove pkg/btrfs
2014-09-03 09:20:05 -07:00
Blake Mizerany
68b3644ac7
remove vestigial build script
2014-09-03 09:20:05 -07:00
Blake Mizerany
7aa0da7c91
remove go_version
2014-09-03 09:20:05 -07:00
Blake Mizerany
902f1864b1
remove contrib
2014-09-03 09:20:05 -07:00
Blake Mizerany
45dc778fbb
remove goprotobuf
2014-09-03 09:20:05 -07:00
Blake Mizerany
0f1e18f8f0
remove toml dep
2014-09-03 09:20:05 -07:00
Blake Mizerany
65f7833c22
remove go-httpclient
2014-09-03 09:20:05 -07:00
Blake Mizerany
91daf1da86
remove gorilla and its users
2014-09-03 09:20:05 -07:00
Blake Mizerany
7da180cfc5
metrics: remove old metrics
2014-09-03 09:20:05 -07:00
Blake Mizerany
e9a45ae35d
remove goraft
2014-09-03 09:20:05 -07:00
Blake Mizerany
1805c15093
config: remove toml
2014-09-03 09:20:04 -07:00
Xiang Li
622ee60d4f
etcd: remove unused field seeds in participant struct
2014-09-03 09:20:04 -07:00
Xiang Li
cc1b4b7ef0
etcd: no more mutex
2014-09-03 09:20:04 -07:00
Xiang Li
d9ff56d7b7
etcd: cleanup locking in run
2014-09-03 09:20:04 -07:00
Xiang Li
3af8c7da3c
etcd: we should trust people
2014-09-03 09:20:04 -07:00
Yicheng Qin
55c4a3307d
server: cleanup participant stop
2014-09-03 09:20:04 -07:00
Yicheng Qin
20c995c142
server: remove return value of func run
2014-09-03 09:20:04 -07:00
Xiang Li
d8424a15dd
etcd: remove unnecessary StopProposalWaiters function
2014-09-03 09:20:04 -07:00
Yicheng Qin
b5b2031d5b
wal: prune repeative logging
2014-09-03 09:20:04 -07:00
Blake Mizerany
c19932c9ba
raft: prune unnecessary logging - fixes #15
2014-09-03 09:20:04 -07:00
Yicheng Qin
f911196e5f
server: not add node that has been in the cluster
2014-09-03 09:20:04 -07:00
Yicheng Qin
c9edb762b7
server: add TLSHandshakeTimeout for peer hub client
2014-09-03 09:20:03 -07:00
Yicheng Qin
394893ff92
server: not set participant status for peer that points to itself
2014-09-03 09:20:03 -07:00
Yicheng Qin
01fdaea8a6
server: not create new peer if exists
2014-09-03 09:20:03 -07:00
Yicheng Qin
434bf8ca81
server: rewrite keepSetting in TestMultiNodeKillOne
...
It avoids blocking http request.
2014-09-03 09:20:03 -07:00
Yicheng Qin
b1426e2635
server: wait for entries to be committed in TestClusterConfigReload
2014-09-03 09:20:03 -07:00
Xiang Li
659eb5fd2a
wal: make record a protobuf type
2014-09-03 09:20:03 -07:00
Yicheng Qin
d0dc7427dd
server: serve /v2/admin on raftPubAddr
2014-09-03 09:20:03 -07:00
Xiang Li
8e06333d45
raft: make State a protobuf type
2014-09-03 09:20:03 -07:00
Xiang Li
b9e7c20a4c
etcd: make cmd a protobuf type
...
Conflicts:
etcd/v2_apply.go
etcd/v2_store.go
2014-09-03 09:20:03 -07:00
Xiang Li
d6c3ebb1a0
raft: make Info a protobuf type
2014-09-03 09:20:03 -07:00
Yicheng Qin
a191df10a3
server: p.Get -> p.QuorumGet
2014-09-03 09:20:03 -07:00
Yicheng Qin
cd4b35c841
server: add QuorumGet
2014-09-03 09:20:02 -07:00
Yicheng Qin
5ffc0adccc
server: participant.Get -> participant.Store.Get
2014-09-03 09:20:02 -07:00
Yicheng Qin
3529c381cf
server: add TODO for /v2/stats
2014-09-03 09:20:02 -07:00
Yicheng Qin
4b3c3203ff
server: stop timer when exit
2014-09-03 09:20:02 -07:00
Yicheng Qin
4f10917ce9
etcd: add a read/write timeout to server
...
The default is for connections to last forever[1]. This leads to fds
leaking. I set the timeout so high by default so that watches don't have
to keep retrying but perhaps we should set it slower.
Tested on a cluster with lots of clients and it seems to have relieved
the problem.
[1] https://groups.google.com/forum/#!msg/golang-nuts/JFhGwh1q9xU/heh4J8pul3QJ
Original Commit: 084dcb5596d52a3a1386d59acced24286137e385
From: philips <brandon@ifup.org>
2014-09-03 09:20:02 -07:00
Yicheng Qin
e587402c26
server: Flush headers when using wait=true and stream=true
...
Many http clients will missbehave unless they get an initial http-
response, even when long-polling. It also saves the user/client from
having to handle headers on the first action of the watch, but rather
handle the response immediately.
Original commit: 2338481bb1d5ab3af95188d21db70512b03ccf38
From: Christoffer Vikström
2014-09-03 09:20:02 -07:00
Yicheng Qin
431ff3cce1
raft: minor change on code
2014-09-03 09:20:02 -07:00
Yicheng Qin
7c3e202c94
etcd: add recover
2014-09-03 09:20:02 -07:00
Yicheng Qin
15029381e1
raft: fix promotable
2014-09-03 09:20:02 -07:00
Yicheng Qin
01c40fcf50
raft: not recover from outdated snapshot
2014-09-03 09:20:02 -07:00
Yicheng Qin
ba63cf666d
raft: add recover
2014-09-03 09:20:02 -07:00
Xiang Li
6030261363
etcd/raft: add snap
2014-09-03 09:20:02 -07:00
Yicheng Qin
943fede19c
server: panic when fail to save in wal
2014-09-03 09:20:01 -07:00