13158 Commits

Author SHA1 Message Date
Hitoshi Mitake
da1d42d111 Documentation: note on password strength 2020-06-22 19:48:51 -04:00
Gyuho Lee
3bf09a5859
Merge pull request #11758 from jingyih/automated-cherry-pick-of-#11754-upstream-release-3.3
Automated cherry pick of #11754 on release-3.3
2020-06-21 23:21:55 -07:00
Gyuho Lee
282cce72fd version: 3.3.22
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
v3.3.22
2020-05-20 15:42:36 -07:00
tangcong
a9d14cbb64 wal: add TestValidSnapshotEntriesAfterPurgeWal testcase
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-20 15:08:10 -07:00
tangcong
8ce10ea4a5 wal: fix crc mismatch crash bug 2020-05-20 11:39:00 -07:00
Gyuho Lee
669285f515 rafthttp: log snapshot downloads
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-20 11:01:13 -07:00
Gyuho Lee
1205851db7 version: 3.3.21
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
v3.3.21
2020-05-18 11:30:17 -07:00
Gyuho Lee
672314546b rafthttp: improve snapshot logging
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-18 11:30:01 -07:00
Gyuho Lee
924b8128c2 *: make sure snapshot save downloads SHA256 checksum
ref. https://github.com/etcd-io/etcd/pull/11896

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-18 02:27:01 -07:00
Gyuho Lee
9caec0d124 etcdserver,wal: fix inconsistencies in WAL and snapshot
ref. https://github.com/etcd-io/etcd/issues/10219

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-18 02:26:57 -07:00
Gyuho Lee
23337471d7
Merge pull request #11856 from tangcong/automated-cherry-pick-of-#11817-origin-release-3.3
Automated cherry pick of #11817 on release-3.3
2020-05-07 20:00:11 -07:00
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
Changxin Miao
8781e1d44c etcdserver: watch stream got closed once one request is not permitted (#11708) 2020-04-06 07:09:15 -07: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