17042 Commits

Author SHA1 Message Date
Gyuho Lee
f2bc5eee91
Merge pull request #12969 from ptabor/20210514-etcdctl-step-by-step
Refactor common code from etcdctl (v2,v3) to pkg/corbautl.
2021-05-14 12:14:37 -07:00
Piotr Tabor
00c6090110 Refactor common code from etcdctl (v2,v3) to pkg/corbautl.
Preparation for etcdutl split.
2021-05-14 14:16:53 +02:00
Marek Siarkowicz
41ed74824e server: Simplify passing logger setup by passing only logger 2021-05-14 13:14:48 +02:00
Piotr Tabor
eae7a845a7
Merge pull request #12964 from ptabor/main
Persists Term in the (bbolt) Backend
2021-05-14 06:35:21 +02:00
Piotr Tabor
ab586cd463 Persists Term in the (bbolt) Backend.
Additional layer of protection, that allows to validate whether we
start replaying log not only from the proper 'index', but also of the
right 'term'.
2021-05-13 21:29:01 +02:00
Piotr Tabor
e44fb40be5
Merge pull request #12962 from ptabor/20210513-write-conf-state
Save raftpb.ConfState in the backend.
2021-05-13 19:22:28 +02:00
Piotr Tabor
6ce7f7409e Update changelog for storage format changes. 2021-05-13 19:21:25 +02:00
Gyuho Lee
e2d67f2e3b
Merge pull request #12956 from gyuho/rename-to-main
*: rename "master" branch references to "main" in source code
2021-05-13 08:26:33 -07:00
Piotr Tabor
865df75714 Save raftpb.ConfState in the backend.
This makes (bbolt) backend a full feature snapshot in term of WAL/raft,
i.e. carries:
  - commit : (applied_index)
  - confState

Benefits:
  - Backend will be a sufficient point in time definition sufficient to
start replaying WAL. We have applied_index & confState in consistent
state.
  - In case of emergency a backend state can be used for recovery
2021-05-13 14:29:36 +02:00
Piotr Tabor
3cb1ba4b2b
Merge pull request #12954 from serathius/logger-new-ctx-client
client: Add logger argument to NewCtxClient
2021-05-13 09:03:38 +02:00
Piotr Tabor
178fb876af
Merge pull request #12943 from ptabor/20210430-v2-deprecation-flags
--v2-deprecation flag:  opt-in mode to validate that store-v2 has no user-content
2021-05-13 09:03:12 +02:00
Gyuho Lee
fbbf284493
Merge pull request #12957 from spzala/writeoutformat
doc: fix output flag format
2021-05-12 11:50:53 -07:00
Sahdev Zala
5f76adfc3e doc: fix output flag format
Add missing dash in the flag.
2021-05-12 14:13:08 -04:00
Gyuho Lee
cd6d730dc5 raft: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:41:39 -07:00
Gyuho Lee
b6562a24b6 .github: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:41:24 -07:00
Gyuho Lee
5a0a1a4b45 markdowns: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:41:02 -07:00
Gyuho Lee
3d4629c1fb hack,scripts: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:40:28 -07:00
Gyuho Lee
6bab63e96b tools: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:39:53 -07:00
Gyuho Lee
a8e1cf0433 client: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:38:50 -07:00
Gyuho Lee
19fcefae70 tests: rename "master" branch references to "main"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:38:12 -07:00
Gyuho Lee
77c8033739 server: rename "master" branch references
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 10:37:35 -07:00
Piotr Tabor
79e3d7bd3e Add e2e tests for --v2-deprecation flag. 2021-05-12 19:20:49 +02:00
Gyuho Lee
57d9666974
Merge pull request #12950 from gyuho/badge
README: add badges for all github action workflows
2021-05-12 09:18:28 -07:00
Gyuho Lee
6fdd82f50e README: add badges for all github action workflows
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-12 09:16:31 -07:00
Piotr Tabor
ead81df948 Disallow -v2-deprecation>'not-yet' combined with --enable-v2 2021-05-12 18:09:34 +02:00
Piotr Tabor
7c508741b3 Adding --v2-deprecation flag. 2021-05-12 18:09:34 +02:00
Piotr Tabor
f3b4a3e578 Detecting whether v2store is "empty" (metadata only). 2021-05-12 18:09:34 +02:00
Marek Siarkowicz
1189ee3f3d client: Add logger argument to NewCtxClient 2021-05-12 16:40:55 +02:00
Piotr Tabor
d982fe7176
Merge pull request #12952 from serathius/go1.16.4
Swtich CI to use newest available 1.16 Go version
2021-05-12 16:11:50 +02:00
Marek Siarkowicz
c868bb97a9 github actions: Switch CI to use newest available 1.16 version 2021-05-12 15:25:16 +02:00
Piotr Tabor
7ba53c71a9
Merge pull request #12953 from serathius/e2e-split
github actions: Move e2e to separate workflow and remove semaphoreci
2021-05-12 14:55:28 +02:00
Marek Siarkowicz
f908e423bc github actions: Move e2e to separate workflow and remove semaphoreci 2021-05-12 14:17:17 +02:00
Piotr Tabor
1929aa0a36
Merge pull request #12948 from serathius/logger
client: Allow setting zap logger in config
2021-05-12 13:49:48 +02:00
Marek Siarkowicz
06afe87b34 client: Allow setting zap logger in config 2021-05-12 12:15:20 +02:00
Piotr Tabor
e0a8484c8f
Merge pull request #12941 from serathius/defrag
etcdserver: Implement running defrag if freeable space will exceed provided threshold (on boot)
2021-05-12 09:26:56 +02:00
Piotr Tabor
980d70d050
Merge pull request #12947 from serathius/e2e
github actions: Run e2e tests
2021-05-12 09:23:06 +02:00
Piotr Tabor
3b24496c2a
Merge pull request #12925 from yangxuanjia/yxjetcd_check_resuming
check resuming len to avoid panic
2021-05-12 09:18:40 +02:00
Gyuho Lee
270b60e536 CHANGELOG: update
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2021-05-11 19:32:31 -07:00
yangxuanjia
68b1e9f728 check resuming len to avoid panic 2021-05-12 09:51:59 +08:00
Gyuho Lee
70f7e0d70f
Merge pull request #12929 from gyuho/github-worker-arm64-support 2021-05-11 10:29:53 -07:00
Piotr Tabor
450fd9a0b1
Merge pull request #12946 from serathius/badge
readme: Switch Travis CI test results badge to GitHub actions
2021-05-11 14:24:47 +02:00
Marek Siarkowicz
f48609ae52 github actions: Run e2e tests 2021-05-11 14:20:46 +02:00
Marek Siarkowicz
efc8505739 etcdserver: Implement running defrag if freeable space will exceed privided threshold 2021-05-11 14:00:29 +02:00
Marek Siarkowicz
4bc1aa93e7 readme: Switch Travis CI test results badge to GitHub actions 2021-05-11 13:22:49 +02:00
Piotr Tabor
7ae55cf981
Merge pull request #12942 from ptabor/20210510-expect_debug_true-for-e2e
Run e2e tests with: EXPECT_DEBUG='true'
2021-05-10 19:47:57 +02:00
Piotr Tabor
04c9e8b531 Run e2e tests with: EXPECT_DEBUG='true'
The motivation is need to diagnose flakes like:
https://semaphoreci.com/etcd-io/etcd/branches/pull-request-12940/builds/2.

Now - when the logs are streamed through testing.T logger, the verbosity
is not that significant concern.
2021-05-10 17:46:31 +02:00
Piotr Tabor
74d7d33b7c
Merge pull request #12938 from serathius/test-go1.16.3
github actions: Make github actions go1.16.3 tests blocking and remove them from travis
2021-05-10 17:44:15 +02:00
Piotr Tabor
e892d6de46
Merge pull request #12940 from ptabor/20210510-v2-warnings
Deprecate V2 API: --enable-v2 and --experimental-enable-v2v3 issue a warning
2021-05-10 16:43:46 +02:00
Piotr Tabor
269f22c837 Deprecate V2 API: --enable-v2 and v2v3
Flags `--experimental-enable-v2v3` and '-enable-v2' will raise a warning in 3.5,
in 3.6 they are schedule for decomissioning, such that v2store can stop be written in 3.7.

Deprecation plan in: https://github.com/etcd-io/etcd/issues/12913
2021-05-10 16:19:52 +02:00
Gyuho Lee
5bad818c70
Merge pull request #12919 from lilic/add-opentel-tracing 2021-05-10 07:09:33 -07:00