Xiang Li
e46beb75c8
tools/functional-tester/etcd-agent: add status rpc
2015-03-13 10:48:06 -07:00
Yicheng Qin
f9ee8ecb3a
Merge pull request #2478 from kmeaw/master
...
Support IPv6 address for ETCD_ADDR and ETCD_PEER_ADDR
2015-03-12 13:04:32 -07:00
Xiang Li
d537ef3de9
Merge pull request #2494 from xiang90/ft
...
tools/functional-tester: add http status reporter
2015-03-12 12:50:13 -07:00
Xiang Li
462f32a81b
tools/functional-tester: add http status reporter
2015-03-12 12:49:48 -07:00
Xiang Li
ab20a5e12d
Merge pull request #2491 from endocode/iaguis/fix-test
...
rafttest: fix build error
2015-03-12 08:02:30 -07:00
Iago López Galeiras
e698192e4a
rafttest: fix build error
...
raftLogger is not exported so we can't access it from here. Go back to
using log.
2015-03-12 11:47:13 +01:00
kmeaw
00a22891ee
pkg/flags: Add support for IPv6 addresses
...
Support IPv6 address for ETCD_ADDR and ETCD_PEER_ADDR
pkg/flags: Support IPv6 address for ETCD_ADDR and ETCD_PEER_ADDR
pkg/flags: tests for IPv6 addr and bind-addr flags
pkg/flags: IPAddressPort.Host: do not enclose IPv6 address in square brackets
pkg/flags: set default bind address to [::] instead of 0.0.0.0
pkg/flags: we don't need fmt any more
also, one minor fix: net.JoinHostPort takes string as a port value
pkg/flags: fix ipv6 tests
pkg/flags: test both IPv4 and IPv6 addresses in TestIPAddressPortString
etcdmain: test: use [::] instead of 0.0.0.0
2015-03-12 11:30:53 +03:00
Yicheng Qin
32105e6ed0
Merge pull request #2484 from yichengq/336
...
rafthttp: drop messages in channel when disconnection
2015-03-11 14:55:10 -07:00
Yicheng Qin
e41cbeda5d
rafthttp: drop messages in channel when disconnection
...
The messages in channel are outdated, and there is no need to send
them in the future. It also reports unreachable if there are messages
in the channel.
2015-03-11 14:42:06 -07:00
Yicheng Qin
62a7e2f41f
Merge pull request #2483 from yichengq/335
...
rafthttp: report unreachable when dropping messages
2015-03-11 14:41:15 -07:00
Xiang Li
39731724ff
Merge pull request #2485 from yichengq/337
...
raft: fall back to bad path when unreachable
2015-03-11 14:16:39 -07:00
Yicheng Qin
a230003255
rafthttp: report unreachable when dropping messages
2015-03-11 14:11:41 -07:00
Yicheng Qin
be0bf2a2bd
raft: fall back to bad path when unreachable
2015-03-11 13:21:23 -07:00
Xiang Li
2ca981d8cb
Merge pull request #2482 from xiang90/fix-raft
...
raft: reply with the commit index when receives a smaller append message
2015-03-11 10:34:25 -07:00
Xiang Li
c643967a41
raft: reply with the commit index when receives a smaller append message
...
Follower should not reject the append message with a smaller index than its commit
index. Or it will trigger the leader's resending logic, which might have a high cost.
2015-03-10 22:32:36 -07:00
Xiang Li
b1ff6ddd88
Merge pull request #2446 from xiang90/apply-routine
...
etcdserver: separate apply and raft routine
2015-03-10 18:40:52 -07:00
Xiang Li
d015610da5
etcdserver: separate apply and raft routine
2015-03-10 13:34:24 -07:00
Yicheng Qin
9a9d00b482
Merge pull request #2453 from yichengq/334
...
tools/etcd-tester: add kill one member tests
2015-03-10 13:17:57 -07:00
Yicheng Qin
24a210ab20
tools/etcd-tester: add kill one member tests
2015-03-10 11:38:54 -07:00
Xiang Li
83496c3966
Merge pull request #2474 from xiang90/fix-wal
...
wal: fix ReleaseLockTo
2015-03-09 20:12:24 -07:00
Xiang Li
b66eb3d81c
wal: fix ReleaseLockTo
...
ReleaseLockTo should not release the lock on the WAL
segment that is right before the given index. When
restarting etcd, etcd needs to read from the WAL segment
that has a smaller index than the snapshot index.
The correct behavior is that ReleaseLockTo releases
the locks w is holding so that w only holds one lock
that has an index smaller than the given index.
2015-03-09 19:52:54 -07:00
Yicheng Qin
4e525e63a4
Merge pull request #2459 from yichengq/335
...
rafthttp: use dedicated go-routine for MsgProp process
2015-03-09 14:17:28 -07:00
Yicheng Qin
51397a6423
rafthttp: use go-routine for MsgProp processing
...
MsgProp process is blocking when there is no leader, which blocks the peer
loop totally.
2015-03-09 14:11:16 -07:00
Xiang Li
a2be25cba4
Merge pull request #2460 from xiang90/raft-logger
...
raft: introduce logger interface
2015-03-09 08:00:21 -07:00
Xiang Li
97579e2e1d
raft: introduce logger interface
2015-03-08 21:36:32 -07:00
Xiang Li
17ba06b5cd
Merge pull request #2461 from xiang90/fix-raft
...
raft: do not reset vote if term is not changed
2015-03-08 11:39:35 -07:00
Xiang Li
7fe608532a
raft: do not reset vote if term is not changed
...
raft MUST keep the voting information for the same term. reset
should not reset vote if term is not changed.
2015-03-07 22:31:20 -08:00
Xiang Li
b374f93bb8
Merge pull request #2456 from xiang90/tls
...
pkg/transport: fix downgrade https to http bug in transport
2015-03-06 11:39:44 -08:00
Xiang Li
3c9581adde
pkg/transport: fix downgrade https to http bug in transport
...
If the TLS config is empty, etcd downgrades https to http without a warning.
This commit avoid the downgrade and stoping etcd from bootstrap if it cannot
listen on TLS.
2015-03-06 10:42:23 -08:00
Xiang Li
964c61916d
Merge pull request #2455 from kelseyhightower/add-benchmarks
...
Documentation: add initial benchmarks
2015-03-06 09:34:05 -08:00
Kelsey Hightower
4a38788b2f
Documentation: add initial benchmarks
2015-03-06 09:32:24 -08:00
Yicheng Qin
ba20016f0f
tools/etcd-tester: reorganize failures
2015-03-05 21:14:41 -08:00
Xiang Li
daea484a9f
Merge pull request #2451 from xiang90/fix_wal
...
wal: do not race reader and writer
2015-03-05 20:57:25 -08:00
Xiang Li
ab72c3ec88
wal: do not race reader and writer
2015-03-05 20:19:17 -08:00
Yicheng Qin
eba6daef4b
Merge pull request #2450 from yichengq/335
...
tools/functional-tester: add cleanup rpc
2015-03-05 16:36:16 -08:00
Yicheng Qin
181ee445c1
better dir name
2015-03-05 16:34:14 -08:00
Yicheng Qin
b96ecfcc07
Merge pull request #2448 from yichengq/334
...
tools/etcd-tester: add kill majority test
2015-03-05 15:59:34 -08:00
Xiang Li
8e76ccf979
Merge pull request #2439 from xiang90/metrics
...
Metrics
2015-03-05 15:55:34 -08:00
Yicheng Qin
2152447361
tools/functional-tester: add cleanup rpc
2015-03-05 15:55:28 -08:00
Yicheng Qin
4314b19a2e
tools/etcd-agent: recycle etcd zombie when termination
2015-03-05 15:51:11 -08:00
Yicheng Qin
267313a3f8
tools/etcd-tester: add kill majority test
2015-03-05 15:14:14 -08:00
Yicheng Qin
8b770f8a1a
Merge pull request #2447 from yichengq/334
...
etcd-tester: initial stresser
2015-03-05 13:33:51 -08:00
Yicheng Qin
3cffc910de
tools/etcd-tester: use stresser
2015-03-05 13:21:49 -08:00
Xiang Li
eec52738d8
etcd-tester: initial stresser
2015-03-05 11:06:43 -08:00
Yicheng Qin
0a04eec481
Merge pull request #2441 from yichengq/334
...
tools/functional-tester: make it work basically
2015-03-05 10:30:38 -08:00
Yicheng Qin
d5957aebfd
tools/etcd-tester: add failure killall
2015-03-05 10:24:21 -08:00
Yicheng Qin
530dd891be
tools/etcd-tester: make it work
...
1. add cluster support
2. add failureNo case
3. add main func
2015-03-05 10:24:21 -08:00
Yicheng Qin
8d3d737993
tools/etcd-agent/client: fix rpc Dial
2015-03-05 10:24:21 -08:00
Yicheng Qin
061baad611
tools/etcd-agent: write etcd log into log file
2015-03-05 10:24:13 -08:00
Xiang Li
0ab24d4606
Merge pull request #2444 from bdarnell/multinode-report
...
Add ReportUnreachable and ReportSnapshot to MultiNode.
2015-03-05 10:05:15 -08:00