Gyu-Ho Lee
411ab276b0
e2e: test /metrics, /health endpoints
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-26 06:23:55 -07:00
Gyu-Ho Lee
74c8050adc
*: use etcdhttp.Handle* for health, prometheus handlers
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-26 06:23:55 -07:00
Gyu-Ho Lee
78432e3bd2
etcdhttp: add metrics.go for metrics, health handler
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-26 06:23:55 -07:00
Anthony Romano
16943f04e2
Merge pull request #8283 from heyitsanthony/cancel-compact-rpc
...
v3rpc: set Canceled=true on compacted watch
2017-07-25 19:15:18 -07:00
Anthony Romano
8b1177194e
Merge pull request #8306 from heyitsanthony/v3server-raftreq
...
etcdserver: consolidate error checking for v3_server functions
2017-07-25 19:14:01 -07:00
Anthony Romano
478ba2c4f2
etcdserver: consolidate error checking for v3_server functions
...
Duplicated error checking code moved into raftRequest/raftRequestOnce.
2017-07-25 14:28:39 -07:00
Anthony Romano
05603c4908
Merge pull request #8291 from zbwright/upgrade-index
...
docs: adding an index for upgrade pages.
2017-07-25 12:40:52 -07:00
Anthony Romano
9581f7676c
grpcproxy: forward Canceled field when broadcasting watch responses
2017-07-25 12:36:01 -07:00
Anthony Romano
318caeee7e
clientv3: return CompactRevision wresp when set with Canceled
2017-07-25 12:36:01 -07:00
Anthony Romano
6fb08672d8
v3rpc: set canceled=true when stream is compacted
...
Fixes #8231
2017-07-25 12:36:01 -07:00
Anthony Romano
ebcfdd1a3d
integration: check Canceled is true in compacted watch response
2017-07-25 12:36:01 -07:00
Beth Wright
ffa54929ea
docs: adding an index for upgrade pages.
2017-07-25 10:53:02 -07:00
Xiang Li
d2654f8522
Merge pull request #8092 from mangoslicer/kv-ordering-wrapper
...
Added initial kv order caching functionality
2017-07-24 22:28:40 -07:00
Xiang Li
26bf8c0524
Merge pull request #8292 from zbwright/why-tweak
...
docs: slight rearranging of top two sections.
2017-07-24 21:08:45 -07:00
Xiang Li
93826f2f78
Merge pull request #8288 from irfansharif/pre-vote
...
raft: introduce/fix TestNodeWithSmallerTermCanCompleteElection
2017-07-24 21:05:42 -07:00
Xiang Li
fe33bd1879
Merge pull request #8294 from mitake/proxy-cachemiss
...
proxy: don't inc a cache miss count in a case of linearizable range
2017-07-24 20:47:19 -07:00
Anthony Romano
986e98418d
Merge pull request #8300 from heyitsanthony/proxy-self-cert
...
etcdmain: create self-signed certs when listening on https for httpproxy
2017-07-24 18:30:34 -07:00
Anthony Romano
51d7786050
etcdmain: create self-signed certs when listening on https for httpproxy
...
Fixes failures from TestCtlV3PutClientAutoTLS in proxy coverage tests.
2017-07-24 15:37:05 -07:00
fanmin shi
dfd3ef42cf
Merge pull request #8297 from fanminshi/fix_txn_ctl
...
etcdctl: print "del" instead of "delete" in txn interactive mode
2017-07-24 14:05:14 -07:00
fanmin shi
09f67a0d5e
e2e: change expectatation string in ctlTxn
2017-07-24 10:51:31 -07:00
Anthony Romano
e9a7f3551b
Merge pull request #8281 from heyitsanthony/san-rdns
...
transport: use reverse lookup to match wildcard DNS SAN
2017-07-22 08:02:57 -07:00
Anthony Romano
e9d5f75323
e2e/docker: docker image for testing wildcard DNS
2017-07-21 17:14:50 -07:00
Anthony Romano
52dd13fa35
fixtures: generate wildcard DNS SAN cert
...
DNS: *.etcd.local
2017-07-21 16:43:26 -07:00
Anthony Romano
b1aa962233
transport: use reverse lookup to match wildcard DNS SAN
...
Fixes #8268
2017-07-21 16:43:25 -07:00
fanmin shi
bb0e144b43
etcdctl: print "del" instead of "delete" in txn interactive mode
2017-07-21 14:31:39 -07:00
Anthony Romano
2eb9353019
Merge pull request #8277 from heyitsanthony/test-e2e-grpcproxy
...
e2e grpcproxy tests
2017-07-21 12:57:25 -07:00
Anthony Romano
954ec4d1a5
e2e: fix range indexing for args2env conversion
...
Was dropping the last argument in the slice.
2017-07-21 11:00:23 -07:00
Anthony Romano
107828d777
test: support -tags cluster_proxy for e2e tests
2017-07-21 11:00:22 -07:00
Anthony Romano
1dcae41b20
grpcproxy: return nil on receiving snapshot EOF
...
Gets "code = OutOfRange desc = EOF" errors otherwise.
2017-07-21 11:00:22 -07:00
Anthony Romano
c5447c2ec9
etcdmain: support crl in grpcproxy
2017-07-21 11:00:22 -07:00
Anthony Romano
efbee9d8c7
etcdmain: support --auto-tls and --insecure-skip-verify in grpcproxy
2017-07-21 11:00:22 -07:00
Anthony Romano
1365f87d40
etcdmain: cleanup grpcproxy; support different certs for proxy/etcd
...
Enables TLS termination in grpcproxy.
2017-07-21 11:00:22 -07:00
Anthony Romano
d5a0d4d696
etcdmain, embed: --auto-peer-tls and --auto-tls for v2 proxy
...
Fixes #7930
2017-07-21 11:00:22 -07:00
Anthony Romano
5d6c6ad20e
etcdmain: use client tls info for v2 proxy client connections
...
Was defaulting to PeerTLSInfo for client connections to the etcd cluster.
Since proxy users may rely on this behavior, only use the client tls
info if given, and fall back to peer tls otherwise.
2017-07-21 11:00:22 -07:00
Anthony Romano
426ad25924
transport: include InsecureSkipVerify in TLSInfo
...
Some functions take a TLSInfo to generate a tls.Config and there was no
way to force the InsecureSkipVerify flag.
2017-07-21 11:00:22 -07:00
Anthony Romano
7c22d35dff
etcdmain: support grpc-proxy/gateway compiled with -tags cov
2017-07-21 11:00:22 -07:00
Anthony Romano
5c6a6bdc5a
e2e: refactor to support -tags cluster_proxy
2017-07-21 11:00:22 -07:00
irfan sharif
a92ceeec25
raft: introduce/fix TestNodeWithSmallerTermCanCompleteElection
...
TestNodeWithSmallerTermCanCompleteElection tests the scenario where a
node that has been partitioned away (and fallen behind) rejoins the
cluster at about the same time the leader node gets partitioned away.
Previously the cluster would come to a standstill when run with PreVote
enabled.
When responding to Msg{Pre,}Vote messages we now include the term from
the message, not the local term. To see why consider the case where a
single node was previously partitioned away and it's local term is now
of date. If we include the local term (recall that for pre-votes we
don't update the local term), the (pre-)campaigning node on the other
end will proceed to ignore the message (it ignores all out of date
messages).
The term in the original message and current local term are the same in
the case of regular votes, but different for pre-votes.
NB: Had to change TestRecvMsgVote to include pb.Message.Term when
sending MsgVote messages. The new sanity checks on MsgVoteResp
(m.Term != 0) would panic with the old test as raft.Term would be equal
to 0 when responding with MsgVoteResp messages.
2017-07-21 02:26:02 -04:00
Hitoshi Mitake
488df4db34
proxy: don't inc a cache miss count in a case of linearizable range
...
Requests of linearizable range don't touch the cache of grpcproxy. So
incrementing the miss count wouldn't be meaningful.
2017-07-20 21:51:10 -07:00
Anthony Romano
a64d15eeed
Merge pull request #8286 from heyitsanthony/wal-check-locks
...
wal: fall back to closing wal if locked dir rename fails
2017-07-20 18:52:08 -07:00
Beth Wright
2c4e22fd43
docs: link fix.
2017-07-20 13:35:55 -07:00
Anthony Romano
fe1ddab714
wal: fall back to closing wal if locked dir rename fails
...
Detecting windows at compile time isn't enough since etcd might be
on linux but the fs is backed by windows.
Fixes : #8178
Fixes : #6984
2017-07-20 13:30:41 -07:00
Xiang Li
fb717aec9b
Merge pull request #8280 from jpbetz/compaction-metrics
...
mvcc: Add metric for count of db key revisions compacted.
2017-07-20 13:16:39 -07:00
Beth Wright
01a49a9f7e
docs: slight rearranging of top two sections.
2017-07-20 12:04:05 -07:00
Joe Betz
c06953ae08
mvcc: Add metric for count of db key revisions compacted.
...
When digging into etcd/boltdb "storage space exceeded" issues, this metric may help answer questions about if/when compactions occured and how much data was freed.
2017-07-20 10:07:56 -07:00
Anthony Romano
46ee06a85c
Merge pull request #8284 from heyitsanthony/whitelist-close
...
testutil: whitelist os.(*file).close
2017-07-19 21:32:55 -07:00
mangoslicer
887df72d13
clientv3/ordering: kv order caching
2017-07-19 21:40:50 -04:00
Gyu-Ho Lee
cfbf666dd4
Merge pull request #8285 from gyuho/news
...
NEWS: add v3.2.4
2017-07-19 14:51:36 -07:00
Gyu-Ho Lee
55d445b891
NEWS: add v3.2.4
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-19 14:39:43 -07:00
Anthony Romano
bb42d2b40e
testutil: whitelist os.(*file).close
...
Leak detector is catching goroutines trying to close files which appear
runtime related:
1 instances of:
syscall.Syscall(...)
/usr/local/golang/1.8.3/go/src/syscall/asm_linux_386.s:20 +0x5
syscall.Close(...)
/usr/local/golang/1.8.3/go/src/syscall/zsyscall_linux_386.go:296 +0x3d
os.(*file).close(...)
/usr/local/golang/1.8.3/go/src/os/file_unix.go:140 +0x62
It's unlikely a user goroutine will leak on file close; whitelist it.
2017-07-19 13:28:15 -07:00