tangcong
5f799922a8
mvcc: fix deadlock bug
2020-05-08 10:12:36 +08:00
Changxin Miao
1b5e2f4305
Update grpc-gateway to 1.3.1 ( #11843 )
2020-05-06 15:32:08 -07:00
Jingyi Hu
7e20b9ff91
Merge pull request #11753 from tangcong/automated-cherry-pick-of-#11652-#11670-#11710-origin-release-3.3
...
Automated cherry pick of #11652 #11670 #11710
2020-04-10 23:21:34 +08:00
tangcong
294e714489
*: fix cherry-pick conflict
2020-04-06 10:47:14 +08:00
tangcong
64fc4cc244
auth: ensure RoleGrantPermission is compatible with older versions
2020-04-06 09:20:52 +08:00
tangcong
27dffc6d01
etcdserver: print warn log when failed to apply request
2020-04-06 09:20:45 +08:00
tangcong
acd9422459
auth: cleanup saveConsistentIndex in NewAuthStore
2020-04-06 09:16:58 +08:00
tangcong
e7291a1dab
auth: print warning log when error is ErrAuthOldRevision
2020-04-06 09:16:58 +08:00
shawwang
06a2f816e9
auth: add new metric 'etcd_debugging_auth_revision'
2020-04-06 09:16:38 +08:00
tangcong
140bf5321d
*: fix auth revision corruption bug
2020-04-06 09:16:06 +08:00
Gyuho Lee
9fd7e2b802
version: 3.3.20
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
v3.3.20
2020-04-01 10:49:03 -07:00
Gyuho Lee
1aa5da9121
wal: add "etcd_wal_writes_bytes_total"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-04-01 10:49:00 -07:00
Gyuho Lee
89ecd19414
pkg/ioutil: add "FlushN"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-04-01 10:36:03 -07:00
Gyuho Lee
67da93f739
version: 3.3.19
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
v3.3.19
2020-03-18 17:23:32 -07:00
Gyuho Lee
a463bd54ae
words: whitelist "racey"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:23:16 -07:00
Gyuho Lee
cd200b49a2
Revert "version: 3.3.19"
...
This reverts commit acb9746d660850b5d42ddd44ac1025168e73496a.
2020-03-18 17:22:12 -07:00
Gyuho Lee
508808010c
travis.yaml: use Go 1.12.12
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:21:49 -07:00
Gyuho Lee
acb9746d66
version: 3.3.19
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:18:46 -07:00
Gyuho Lee
07562e235c
Revert "version: 3.3.19"
...
This reverts commit 3f6b978b0496080e8067e0d2d1270134a9a51ef8.
2020-03-18 17:18:34 -07:00
Gyuho Lee
10d50e0662
words: whitelist "hasleader"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-03-18 17:18:31 -07:00
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