Gyuho Lee
f9c89209f3
version: 3.3.19
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:18:31 -07:00
Gyuho Lee
d9027cecf2
etcdserver/api/v3rpc: handle api version metadata, add metrics
...
ref.
https://github.com/etcd-io/etcd/pull/11687
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:18:31 -07:00
Gyuho Lee
6f7ee076ea
clientv3: embed api version in metadata
...
ref.
https://github.com/etcd-io/etcd/pull/11687
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
clientv3: fix racy writes to context key
=== RUN TestWatchOverlapContextCancel
==================
WARNING: DATA RACE
Write at 0x00c42110dd40 by goroutine 99:
runtime.mapassign()
/usr/local/go/src/runtime/hashmap.go:485 +0x0
github.com/coreos/etcd/clientv3.metadataSet()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/ctx.go:61 +0x8c
github.com/coreos/etcd/clientv3.withVersion()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/ctx.go:47 +0x137
github.com/coreos/etcd/clientv3.newStreamClientInterceptor.func1()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/client.go:309 +0x81
google.golang.org/grpc.NewClientStream()
/go/src/github.com/coreos/etcd/gopath/src/google.golang.org/grpc/stream.go:101 +0x10e
github.com/coreos/etcd/etcdserver/etcdserverpb.(*watchClient).Watch()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go:3193 +0xe9
github.com/coreos/etcd/clientv3.(*watchGrpcStream).openWatchClient()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:788 +0x143
github.com/coreos/etcd/clientv3.(*watchGrpcStream).newWatchClient()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:700 +0x5c3
github.com/coreos/etcd/clientv3.(*watchGrpcStream).run()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:431 +0x12b
Previous read at 0x00c42110dd40 by goroutine 130:
reflect.maplen()
/usr/local/go/src/runtime/hashmap.go:1165 +0x0
reflect.Value.MapKeys()
/usr/local/go/src/reflect/value.go:1090 +0x43b
fmt.(*pp).printValue()
/usr/local/go/src/fmt/print.go:741 +0x1885
fmt.(*pp).printArg()
/usr/local/go/src/fmt/print.go:682 +0x1b1
fmt.(*pp).doPrintf()
/usr/local/go/src/fmt/print.go:998 +0x1cad
fmt.Sprintf()
/usr/local/go/src/fmt/print.go:196 +0x77
github.com/coreos/etcd/clientv3.streamKeyFromCtx()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:825 +0xc8
github.com/coreos/etcd/clientv3.(*watcher).Watch()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:265 +0x426
github.com/coreos/etcd/clientv3/integration.testWatchOverlapContextCancel.func1()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:959 +0x23e
Goroutine 99 (running) created at:
github.com/coreos/etcd/clientv3.(*watcher).newWatcherGrpcStream()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:236 +0x59d
github.com/coreos/etcd/clientv3.(*watcher).Watch()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/watch.go:278 +0xbb6
github.com/coreos/etcd/clientv3/integration.testWatchOverlapContextCancel.func1()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:959 +0x23e
Goroutine 130 (running) created at:
github.com/coreos/etcd/clientv3/integration.testWatchOverlapContextCancel()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:979 +0x76d
github.com/coreos/etcd/clientv3/integration.TestWatchOverlapContextCancel()
/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:922 +0x44
testing.tRunner()
/usr/local/go/src/testing/testing.go:657 +0x107
==================
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:18:29 -07:00
Gyuho Lee
30aaceb1c3
etcdserver/api/etcdhttp: log server-side /health checks
...
ref.
https://github.com/etcd-io/etcd/pull/11704
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 16:28:18 -07:00
Sam Batschelet
1228d6c1e7
proxy/grpcproxy: add return on error for metrics handler
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2020-03-16 12:06:33 -04:00
Sahdev Zala
eb1df6d9d2
Merge pull request #11665 from jingyih/automated-cherry-pick-of-#11638-upstream-release-3.3
...
Automated cherry pick of #11638 on release-3.3
2020-03-11 19:22:55 -04:00
jingyih
c58133b2d4
etcdctl: fix member add command
...
Use members information from member add response, which is
guaranteed to be up to date.
2020-02-29 07:21:17 -08:00
Jingyi Hu
e21e355d91
Merge pull request #11632 from jingyih/automated-cherry-pick-of-#11630-upstream-release-3.3
...
Automated cherry pick of #11630 to release-3.3
2020-02-16 08:35:50 +08:00
jingyih
7b1a92cb7c
mvcc/backend: check for nil boltOpenOptions
...
Check if boltOpenOptions is nil before use it.
2020-02-15 00:27:08 -08:00
Wenjia
b0a4038b79
Merge pull request #11623 from jpbetz/automated-cherry-pick-of-#11613-origin-release-3.3
...
Automated cherry pick of #11613 to release-3.3
2020-02-13 13:15:03 -08:00
Joe Betz
b3d9e29096
mvcc/backend: Delete orphaned db.tmp files before defrag
2020-02-13 12:32:04 -08:00
Hitoshi Mitake
70853d60e7
Merge pull request #11378 from jingyih/automated-cherry-pick-of-#10218-#10468-upstream-release-3.3
...
Automated cherry pick of #10218 #10468 on release 3.3
2020-01-26 01:40:43 +09:00
Gyuho Lee
3c8740a793
version: 3.3.18
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
v3.3.18
2019-11-26 20:19:50 -08:00
Wenjia
9cd3eefd01
Merge pull request #11394 from jingyih/automated-cherry-pick-of-#11374-upstream-release-3.3
...
Automated cherry pick of #11374 on release 3.3
2019-11-26 15:02:17 -08:00
yoyinzyc
47d3dea2a9
mvcc: update to "etcd_debugging_mvcc_total_put_size_in_bytes"
2019-11-26 14:09:04 -08:00
yoyinzyc
aaa85715c3
mvcc: add "etcd_mvcc_put_size_in_bytes" to monitor the throughput of put request.
2019-11-26 14:07:50 -08:00
Jingyi Hu
e1508f94b6
integration: disable TestV3AuthOldRevConcurrent
...
Disable TestV3AuthOldRevConcurrent for now. See
https://github.com/etcd-io/etcd/pull/10468#issuecomment-463253361
2019-11-20 16:45:48 -08:00
Jingyi Hu
5a4821721e
etcdserver: remove auth validation loop
...
Remove auth validation loop in v3_server.raftRequest(). Re-validation
when error ErrAuthOldRevision occurs should be handled on client side.
2019-11-20 16:45:48 -08:00
Maxim Vladimirskiy
95095f8406
etcdserver: Remove infinite loop in doSerialize
...
Once chk(ai) fails with auth.ErrAuthOldRevision it will always do,
regardless how many times you retry. So the error is better be returned
to fail the pending request and make the client re-authenticate.
2019-11-20 16:45:47 -08:00
Gyuho Lee
5cf80a6229
clientv3: fix retry/streamer error message
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-10-31 10:08:53 -07:00
Gyuho Lee
069bce1384
Merge pull request #11314 from jingyih/automated-cherry-pick-of-#11308-upstream-release-3.3
...
Automated cherry pick of #11308 on release-3.3
2019-10-31 10:08:08 -07:00
Jingyi Hu
7c164a8948
etcdserver: wait purge file loop during shutdown
...
To prevent the purge file loop from accidentally acquiring the file lock
and remove the files during server shutdowm.
2019-10-30 16:47:06 -07:00
Gyuho Lee
ff5fb05bec
scripts/release: list GPG key only when tagging is needed
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-10-23 11:13:05 -07:00
Gyuho Lee
a977795f2d
Merge pull request #11253 from YoyinZyc/automated-cherry-pick-of-#11247-origin-release-3.3
...
Automated cherry pick of #11247
2019-10-18 10:30:16 -07:00
Gyuho Lee
aedfe5458a
Merge pull request #11261 from wenjiaswe/automated-cherry-pick-of-#10257-upstream-release-3.3
...
cherry pick "etcd_cluster_version" metric" (#10257 , #11233 , #11254 , #11265 ) to release-3.3
2019-10-17 12:40:08 -07:00
Wenjia Zhang
e7888805e1
Add cluster version fix #11233 , #11254 , #11265
2019-10-16 13:27:07 -07:00
Gyuho Lee
7fbfdc2b6a
tests/e2e: test cluster version
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-10-15 18:07:53 -07:00
Gyuho Lee
5c19bd24f0
etcdserver/*: add "etcd_cluster_version" metric
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-10-15 18:05:33 -07:00
Joe Betz
683a643fba
Add version, tag and branch checks to release script
2019-10-14 12:57:35 -07:00
Gyuho Lee
660dc83e19
Merge pull request #11245 from YoyinZyc/prevent-darwin-build-3.3
...
scripts: avoid release builds on darwin machine.
2019-10-11 12:37:34 -07:00
yoyinzyc
ffcddac2ff
scripts: avoid release builds on darwin machine.
2019-10-11 11:27:57 -07:00
Joe Betz
6d8052314b
version: v3.3.17
v3.3.17
2019-10-11 10:23:13 -07:00
Gyuho Lee
5e4d852e95
Merge pull request #11236 from YoyinZyc/change-git-clone
...
scripts: use https for git clone.
2019-10-10 22:52:46 -07:00
yoyinzyc
3827d6bd2d
scripts: use https for git clone.
2019-10-10 16:46:37 -07:00
Joe Betz
3fae828623
vendor: v3.3.16
v3.3.16
2019-10-10 10:59:40 -07:00
Gyuho Lee
011bd86bd6
Merge pull request #11196 from andyliuliming/release-3.3-cherry
...
etcdserver: cherry-pick skip client san verification option for 3.3 version.
2019-10-09 09:40:58 -07:00
Andy Liu
a311a80699
helper document update.
2019-10-09 13:15:56 +08:00
Joe Betz
ef61a56c0c
Merge pull request #11215 from jpbetz/automated-cherry-pick-of-#11184-origin-release-3.3
...
Automated cherry pick of #11184
2019-10-08 18:47:12 -07:00
Joe Betz
a2f585d80c
clientv3: Set authority used in cert checks to host of endpoint
2019-10-08 18:25:08 -07:00
Joe Betz
7558b41ccd
Merge pull request #11216 from jpbetz/automated-cherry-pick-of-#11211-origin-release-3.3
...
Automated cherry pick of #11211
2019-10-08 17:16:01 -07:00
Joe Betz
4b227b6e71
clientv3: Replace endpoint.ParseHostPort with net.SplitHostPort to fix IPv6 client endpoints
2019-10-08 16:12:13 -07:00
Gyuho Lee
1be7ab4ee2
Merge pull request #11201 from jingyih/automated-cherry-pick-of-#11194-origin-release-3.3
...
Automated cherry pick of #11194 on release-3.3
2019-10-03 16:03:30 -07:00
Jingyi Hu
02a27c0851
etcdctl: fix member add command
2019-10-03 13:52:57 -07:00
Andy Liu
d851911f86
etcdserver: add unit test.
2019-10-03 16:06:30 +08:00
Andy Liu
86b1686c7e
etcdserver: cherry-pick skip client san verification option for 3.3 version.
...
Co-authored-by: Martin Weindel <martin.weindel@sap.com>
Co-authored-by: Jingyi Hu <jingyih@google.com>
Co-authored-by: Liming Liu <andyliuliming@outlook.com>
2019-10-03 10:12:22 +08:00
Jingyi Hu
943832af44
Merge pull request #11134 from jingyih/automated-cherry-pick-of-#11126-origin-release-3.3
...
Automated cherry pick of #11126 on release-3.3
2019-09-07 00:03:44 -07:00
Jingyi Hu
8a8efa73e6
mvcc: add store revision metrics
...
Add experimental metrics etcd_debugging_mvcc_current_revision and
etcd_debugging_mvcc_compact_revision.
2019-09-06 17:19:46 -07:00
Gyuho Lee
a4f18a40b0
Merge pull request #11056 from jingyih/update_bbolt
...
vendor: update bbolt to v1.3.3
2019-08-20 09:08:39 -07:00
Gyuho Lee
7f067ceafd
Merge pull request #11055 from jingyih/fix_gofmt_bom
...
*: Fix gofmt bom
2019-08-19 22:39:08 -07:00
Jingyi Hu
9244d2ba86
vendor: update bbolt to v1.3.3
2019-08-19 20:55:55 -07:00