Commit Graph

16313 Commits (37fe4b9afac63b8269184168bd01787cad866844)

Author SHA1 Message Date
Gyuho Lee 732df43cf8 CHANGELOG: update dates
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-18 10:57:53 -07:00
Gyuho Lee 1fd1318409 etcdserver/api/rafthttp: improve snapshot send logging
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-18 02:29:20 -07:00
Gyuho Lee 5e2815e9cd
Merge pull request #11801 from YoyinZyc/downgrade-server
[Etcd downgrade] Implement downgrade validate, enable and cancel
2020-05-17 22:47:16 -07:00
Gyuho Lee 52edb7d38c
Merge pull request #11900 from tedyu/omit-orphaned-files
etcdserver: snapNames() should exclude orphaned defragmentation file
2020-05-17 15:37:10 -07:00
Ted Yu f35015abc5 etcdserver: snapNames() should exclude orphaned defragmentation file
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-05-17 14:19:33 -07:00
Gyuho Lee 8b50f4e11d
Merge pull request #11899 from tedyu/rel-snap-db
etcdserver: continue releasing snap db in case of error
2020-05-17 14:01:33 -07:00
Ted Yu 9d20ba4822 raft: avoid data race by not reading raft.lead
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-05-16 20:40:25 -07:00
Ted Yu b84d257b92 etcdserver: continue releasing snap db in case of error
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-05-16 04:43:55 -07:00
Gyuho Lee 52456659bd
Merge pull request #11903 from jchauncey/fix-dockerfile-release
fix(Dockerfile-release): from image was missing image name
2020-05-15 20:19:05 -07:00
Jonathan Chauncey 71c062e3d8 fix(Dockerfile-release): from image was missing image name 2020-05-15 22:48:11 -04:00
Gyuho Lee 31b6e5a087
Merge pull request #11896 from gyuho/snapshot
*: make sure snapshot save downloads SHA256 checksum
2020-05-15 19:41:50 -07:00
yoyinzyc d230e6ba8c etcdserver: handle and apply downgrade validate, enable and cancel requests 2020-05-15 14:45:00 -07:00
yoyinzyc 37e598a20b etcdserver: define error string and link with grpc error code. 2020-05-15 11:51:39 -07:00
Gyuho Lee d4ae7baea1 words: add SHA
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 22:57:52 -07:00
Gyuho Lee 39c43cfb3c clientv3: make sure snapshot has integrity check hash
I've seen some cases SHA blobs are missing (still investigating).
Adding a check to make sure snapshot save always downloads
hash digests for integrity checks.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 22:57:52 -07:00
Gyuho Lee 4ddcc36057 etcdserver/api/v3rpc: document, clean up snapshot sends
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 22:57:52 -07:00
Gyuho Lee f1179fd70d etcdserver/api/snap: update format string in "ReleaseSnapDBs"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 22:57:20 -07:00
Gyuho Lee 3d3ed29d64 CHANGELOG: update
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 20:12:44 -07:00
Gyuho Lee e821ac8b35 functional: bump up Go versions to 1.14.3
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 20:01:27 -07:00
Gyuho Lee 93de72537e Makefile: bump up default Go version to 1.14.3
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 20:01:12 -07:00
Gyuho Lee 2c7670f9c6 travis: bump up to Go 1.14.3
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-14 20:00:57 -07:00
Gyuho Lee 3488e25a75
Merge pull request #11888 from jpbetz/out-of-range-fix
Fix state.commit is out of range on restart
2020-05-14 17:55:20 -07:00
Joe Betz 743e6e92cb etcdserver/*, wal/*: Remove orphaned .snap.db files during Release 2020-05-14 15:16:51 -07:00
Sahdev Zala dd7055be51
Merge pull request #11874 from jackkleeman/patch-1
Update CHANGELOG for 11850
2020-05-14 17:38:54 -04:00
Joe Betz b68eea236e etcdserver/*, wal/*:Add comments, clean up error messages and tests 2020-05-14 13:34:55 -07:00
Jack Kleeman 3b6d222627 CHANGELOG: update for 11850
https://github.com/etcd-io/etcd/pull/11850
2020-05-14 19:30:13 +01:00
Joe Betz bd16071846
etcdserver/*, wal/*: find valid snapshots by cross checking snap files and wal snap entries 2020-05-14 09:22:45 -07:00
Viacheslav Biriukov 50517039ae
etcdserver/*, wal/*: add Sync method 2020-05-13 08:47:47 -07:00
Viacheslav Biriukov 91efa67cb1
etcdserver/*: rollback default settings 2020-05-13 08:47:47 -07:00
Viacheslav Biriukov 5435e7686a
etcdserver/*: fix tests 2020-05-13 08:47:41 -07:00
Viacheslav Biriukov 3d2b565f98
etcdserver/*: changes to snapshots and wal logic to fix #10219 2020-05-13 08:46:15 -07:00
Viacheslav Biriukov 9162cd613d
etcdserver/*, wal/*: changes to snapshots and wal logic to fix #10219 2020-05-13 08:42:03 -07:00
Zhihong Yu 7cc2f8a411
raft: break out of nested loop when id is found (#11870)
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-05-12 16:59:22 -07:00
Jonathan Chauncey 6fb3b9e591
chore(Dockerfile-release): Update base image to use new debian-base:v2.1.0 (#11885)
Updates the base image for all arch releases to the new location (us.gcr.io/k8s-artifacts-prod/build-image) as well as to the latest version (v2.1.0). This should fix a number of vulnerabilities that are in the 1.0.0 base image release.
2020-05-12 16:58:38 -07:00
Jack Kleeman ec13797407
mvcc: avoid negative watcher count metrics (#11882)
The watch count metrics are not robust to duplicate cancellations. These
cause the count to be decremented twice, leading eventually to negative
counts. We are seeing this in production. The duplicate cancellations
themselves are not themselves a big problem (except performance), but
they are caused by the new proactive cancellation logic (#11850) which
cancels proactively even immediately before initiating a Close, thus
nearly guaranteeing a Close-cancel race, as discussed in
watchable_store.go. We can avoid this in most cases by not sending a
cancellation when we are going to Close.
2020-05-12 16:50:53 -07:00
Gyuho Lee ab494956bf
Merge pull request #11862 from gyuho/const
etcdserver: compute max request bytes humanized string once
2020-05-11 19:36:37 -07:00
Gyuho Lee 5f07d46f70
Merge pull request #11863 from gyuho/gofmt
*: run "gofmt -s" on genproto complete
2020-05-11 18:08:22 -07:00
Gyuho Lee 2ecf268367
Merge pull request #11864 from gyuho/go1.14
*: use Go 1.14 for CI
2020-05-11 18:08:07 -07:00
Gyuho Lee 11569821db CHANGELOG-3.5: update
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-11 18:07:39 -07:00
Gyuho Lee 60ce7bc2fa functional/scripts: update default Go version
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-11 18:05:03 -07:00
tangcong c667c14d8d
fix memberList inconsistent output (#11812)
* etcdctl/ctlv3: support to print memberlist in hex format json

* e2e: add memberListWithHexTest

* CHANGELOG: update for #11812
2020-05-11 00:11:40 -07:00
Gyuho Lee 0a0c27a4df functional: add "-mod=mod" flags
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 18:36:38 -07:00
Gyuho Lee b79abb6f76 travis: set "-mod=mod"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 18:36:38 -07:00
Gyuho Lee 6874b9a76b test: add "mod" to build tests
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 18:36:38 -07:00
Gyuho Lee b34c0c55a5 pkg/tlsutil: add "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" to support cipher suite
pkg/tlsutil: support TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 18:36:28 -07:00
Gyuho Lee e94201c9fd test: set mod flags for bom test
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 13:37:18 -07:00
Gyuho Lee 027c26a0fd test: test '-mod=mod'
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 12:39:11 -07:00
Gyuho Lee b6ea32ee0f test: ignore vendor directory in govet test
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-10 12:35:15 -07:00
Gyuho Lee 628bd294e1 *: use Go 1.14 for CI
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-09 23:34:20 -07:00
Gyuho Lee d93c36bbb9 *: run "gofmt -s" on genproto complete
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-05-09 23:14:32 -07:00