Anthony Romano
911c8442b7
rafthttp: fix race between streamReader.stop() and connection closer
2016-08-15 01:36:09 -07:00
Xiang Li
7b11c288fe
Merge pull request #6169 from sinsharat/master
...
etcdserver: optimized veryfying local member
2016-08-12 19:09:55 -07:00
sharat
1fec4ba127
etcdserver: optimized veryfying local member
...
moved the code for perparing and sorting of advertising peer urls and
sorting of peer urls only when strict verification needs to be done.
This is done to avoid this processing when strict verification is not
required like in case of VerifyJoinExisting function.
#6165
2016-08-13 06:17:21 +05:30
Anthony Romano
817de6d212
Merge pull request #6168 from heyitsanthony/fix-periodic-test-block
...
compactor: wait for After() in TestPeriodic
2016-08-12 13:54:06 -07:00
Anthony Romano
5eff6fb7db
compactor: wait for After() in TestPeriodic
...
If the test calls clock.Advance() after the compactor checks clock.Now()
but before the compactor calls clock.After(), the compactor will wait
forever on clock.After() expecting the lost clock.Advance().
Reproduced failure by putting a Sleep() in the clock.Now() continue path.
Fixes #6060 (again)
2016-08-12 13:28:40 -07:00
Gyu-Ho Lee
f975fe8068
Merge pull request #6140 from gyuho/network-partition
...
*: add network partition tests
2016-08-12 12:33:24 -07:00
Gyu-Ho Lee
0a00328a7c
integration: add network partition tests
2016-08-12 12:15:29 -07:00
Xiang Li
82a3d90763
Merge pull request #6167 from xiang90/fix_txn_rev
...
etcdserver: fix wrong rev in header when nothing is actually got executed
2016-08-12 12:14:48 -07:00
Xiang Li
92a0f08722
etcdserver: fix wrong rev in header when nothing is actually got executed
2016-08-12 11:44:13 -07:00
Anthony Romano
67b1c7cce5
Merge pull request #6166 from heyitsanthony/clientv3-nonblock-new
...
clientv3: support non-blocking New()
2016-08-12 10:57:45 -07:00
Anthony Romano
429d5ab20b
clientv3: only block on New() when DialTimeout > 0
...
Fixes #6162
2016-08-12 10:33:11 -07:00
Gyu-Ho Lee
c6c6cfb502
etcdserver: implement 'CutPeer', 'MendPeer'
2016-08-12 07:38:52 -07:00
Xiang Li
c33ea20fef
Merge pull request #6161 from sinsharat/master
...
etcdserver: stats/server - refactored
2016-08-11 17:03:23 -07:00
Anthony Romano
965b2901d5
Merge pull request #6156 from heyitsanthony/remove-member-quorum
...
etcdserver: reject member removal that breaks active quorum
2016-08-11 11:40:38 -07:00
Anthony Romano
aa9837e8ff
e2e: support --strict-reconfig-check=false
2016-08-11 11:14:14 -07:00
Anthony Romano
e742ff331f
integration: test member removal which breaks active quorum is rejected
2016-08-11 11:14:14 -07:00
sharat
6205a9a6cb
etcdserver: stats/server - refactored
...
removed code duplicacy and improved readability
#6160
2016-08-11 22:09:25 +05:30
Gyu-Ho Lee
de06dc1272
Merge pull request #6155 from gyuho/raft-leader-transfer
...
*: expose Raft leader transfer
2016-08-11 08:03:28 -07:00
Xiang Li
d3812ed664
Merge pull request #6157 from siddontang/siddontang/fix-overflow
...
raft: fix overflow
2016-08-11 07:53:48 -07:00
siddontang
f8ee322b08
raft: fix overflow
2016-08-11 09:24:49 +08:00
Gyu-Ho Lee
8a32929d29
Merge pull request #6154 from gyuho/rafthttp-pause
...
rafthttp: add Transport.Cut/MendPeer
2016-08-10 17:10:30 -07:00
Gyu-Ho Lee
937ae658dd
rafthttp: add Transport.Cut/MendPeer
...
From https://github.com/coreos/etcd/pull/6140 .
2016-08-10 17:09:35 -07:00
Anthony Romano
a1ce07a321
etcdserver: reject member removal that breaks the current active quorum
2016-08-10 17:00:39 -07:00
Gyu-Ho Lee
a56cb82180
etcdserver: add TransferLeadership for raft.Node
2016-08-10 16:26:11 -07:00
Gyu-Ho Lee
e64ef3f261
raft: add 'TransferLeadership' to Node interface
2016-08-10 16:25:22 -07:00
Gyu-Ho Lee
f4141f0f51
raft: handle 'MsgTransferLeader' in follower
2016-08-10 16:24:29 -07:00
Gyu-Ho Lee
d72cee1b0c
Merge pull request #6153 from gyuho/example
...
clientv3: update base example with TLS
2016-08-10 14:53:42 -07:00
Gyu-Ho Lee
1644679d00
clientv3: add 'ExampleConfig_withTLS'
2016-08-10 14:37:34 -07:00
Xiang Li
7eb43ea75b
Merge pull request #6152 from xiang90/fix_count
...
mvcc: fix count
2016-08-10 11:42:10 -07:00
Xiang Li
f5549cba2a
Merge pull request #6151 from heyitsanthony/configfile-defaults
...
embed: load config defaults before loading from file
2016-08-10 11:27:57 -07:00
Xiang Li
de864d3b58
mvcc: fix count
2016-08-10 10:54:25 -07:00
Gyu-Ho Lee
2bb1f9c8a4
Merge pull request #6150 from gyuho/metrics
...
etcdserver: use Counter for proposals_failed_total
2016-08-10 09:59:10 -07:00
Anthony Romano
eb97aba581
e2e: test etcd boots with example config file
2016-08-10 09:45:17 -07:00
Anthony Romano
6de993b468
embed: load config defaults before loading config from file
2016-08-10 09:44:50 -07:00
Xiang Li
06e2338108
Merge pull request #6113 from ypu/e2e
...
Add some test flags for e2e test
2016-08-10 09:28:27 -07:00
Gyu-Ho Lee
d219e96359
etcdserver: use Counter for proposals_failed_total
...
It only ever goes up.
2016-08-10 09:27:51 -07:00
Xiang Li
b6f5b6b1c9
Merge pull request #6147 from sinsharat/master
...
etcdserver: Error handling for invalid empty raft cluster
2016-08-10 08:52:45 -07:00
sharat
2b5a5c77cf
etcdserver: Error handling for invalid empty raft cluster
...
TODO implemented for GetClusterFromRemotePeers should not return nil
error with an invalid empty cluster
#6137
2016-08-10 19:23:19 +05:30
Yiqiao Pu
a5e4fbd335
e2e: Make the certificate file path configurable
...
This commit will help us to run the e2e tests in an enviroment
without e2e source code more convenient.
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
2016-08-10 15:40:12 +08:00
Yiqiao Pu
2ca87f6c03
e2e: Make it can run with exist binary
...
Add the bin-dir option to the command line, so the e2e tests can
run with an exist binary. For example(run the command under e2e
directory):
go test -v -timeout 10m -bin-dir /usr/bin -cpu 1,2,4
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
2016-08-10 15:40:12 +08:00
Anthony Romano
81f5e31ed2
Merge pull request #6142 from heyitsanthony/fix-cancel-watch-imm
...
clientv3: handle watchGrpcStream shutdown if prior to goroutine start
2016-08-09 20:53:56 -07:00
Xiang Li
2d3eda4afa
Merge pull request #6139 from aaronlehmann/export-segment-size
...
wal: Export SegmentSizeBytes as a variable
2016-08-09 20:39:56 -07:00
Anthony Romano
1c83a46c6d
clientv3: handle watchGrpcStream shutdown if prior to goroutine start
...
Fixes #6141
2016-08-09 19:59:04 -07:00
Aaron Lehmann
2b996b6038
wal: Export SegmentSizeBytes as a variable
...
In test situations, it's useful to create smaller than usual WAL files
to test rotation and to avoid the overhead of preallocation on old-style
filesystems that don't handle it efficiently. This commit changes
segmentSizeBytes to an exported variable so that tests can override it
from an init() function.
2016-08-09 15:38:30 -07:00
Anthony Romano
88a77f30e1
Merge pull request #6136 from heyitsanthony/fix-watcher-leak
...
clientv3: close watcher stream once all watchers detach
2016-08-09 10:23:15 -07:00
Anthony Romano
8c1c291332
clientv3/integration: test watcher cancelation propagation to server
2016-08-09 00:10:57 -07:00
Anthony Romano
5e651a0d0d
clientv3: close watcher stream once all watchers detach
...
Fixes #6134
2016-08-09 00:10:57 -07:00
Anthony Romano
c3c41234f1
integration: support querying member metrics
2016-08-08 23:45:50 -07:00
Xiang Li
c7e4198742
Merge pull request #6129 from xiang90/fix_raft
...
raft: fix getting unapplied log entries
2016-08-08 16:30:42 -07:00
Gyu-Ho Lee
8f3a11c73c
Merge pull request #6105 from gyuho/release-notes
...
NEWS: add release notes for >v3.0.0 releases
2016-08-08 15:39:14 -07:00