19368 Commits

Author SHA1 Message Date
Benjamin Wang
756875151f
Merge pull request #15130 from guozhao-coder/replace-timeAfter
etcdserver: use time.Ticker instead of time.After
2023-01-19 05:09:21 +08:00
Benjamin Wang
2af9d67943
Merge pull request #15133 from serathius/linearizability-history-persist
tests: Persist operation history
2023-01-19 05:08:49 +08:00
Marek Siarkowicz
e3e94fe89e
Merge pull request #14682 from serathius/issue13766
Reproduce issue 13766 in linearizability tests
2023-01-18 13:37:34 +01:00
Marek Siarkowicz
f629d48600 Close file while persisting operation history
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-18 09:43:30 +01:00
Benjamin Wang
48ac46dab5
Merge pull request #15135 from fuweid/update-3.4-changelog
CHANGELOG: add item about improvement for count-only range
2023-01-18 10:30:12 +08:00
Wei Fu
754e1ee4ce CHANGELOG: add item about improvement for count-only range
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-18 09:51:42 +08:00
Marek Siarkowicz
a0d12d316d tests: Add reproduce #13766 scenario
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-17 14:34:19 +01:00
Marek Siarkowicz
f763c53d51 tests: Persist operation history
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-17 11:58:56 +01:00
Marek Siarkowicz
09b5663301
Merge pull request #15132 from serathius/linearizability-nightly-fix
tests: Fix linearizability nightly variable name
2023-01-17 10:40:55 +01:00
Marek Siarkowicz
0c483830d9 tests: Fix linearizability nightly variable name 2023-01-17 10:40:05 +01:00
Marek Siarkowicz
a31b44b843
Merge pull request #15098 from ahrtr/changelog_promote_learner_20230113
changelog: add items to cover the issue of promoting a non-started learner member
2023-01-17 10:23:25 +01:00
guozhao
de8d6b3792 etcdserver: use time.Ticker instead of time.After
Using time.After will create a new Timer in each cycle, In these cases
, it is better to use time.Ticker.

Signed-off-by: guozhao <guozhao@360.cn>
2023-01-17 16:58:13 +08:00
Piotr Tabor
5d06650028
Merge pull request #15128 from serathius/linearizability-move-model
tests: Move linearizability model and identity to dedicated packages
2023-01-17 09:17:31 +01:00
Benjamin Wang
a3925d1ed6
Merge pull request #15129 from ahrtr/bump_dependency_20230117
Bump some dependencies
2023-01-17 07:16:46 +08:00
Benjamin Wang
81b359262e
Merge pull request #15095 from ahrtr/promote_non_exist_id_20230113
etcdserver: return `membership.ErrIDNotFound` when the memberID not found
2023-01-17 07:12:29 +08:00
Benjamin Wang
1659f8980f dependency: bump github/codeql-action from 2.1.37 to 2.1.38
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 06:46:31 +08:00
Benjamin Wang
b2d482e6da dependency: bump gotest.tools/gotestsum from v1.8.2 to v1.9.0
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 06:39:26 +08:00
Benjamin Wang
ac98432f0b dependency: bump github.com/dustin/go-humanize from v1.0.0 to v1.0.1
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 06:37:19 +08:00
Benjamin Wang
575ceed1c7 dependency: bump github.com/mikefarah/yq/v4 from v4.30.6 to v4.30.8
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 06:33:05 +08:00
Benjamin Wang
8ed20e85d2 etcdserver: return membership.ErrIDNotFound when the memberID not found
When promoting a learner, we need to wait until the leader's applied ID
catches up to the commitId. Afterwards, check whether the learner ID
exist or not, and return `membership.ErrIDNotFound` directly in the API
if the member ID not found, to avoid the request being unnecessarily
delivered to raft.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 06:18:15 +08:00
Marek Siarkowicz
96e2a7fbd6 tests: Move linearizability model and identity to dedicated packages
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-16 19:16:27 +01:00
Marek Siarkowicz
677e5281e0
Merge pull request #15106 from serathius/linearizability-nightly-release
Add linearizability nightlies for release 3.4/3.5
2023-01-16 11:47:39 +01:00
Thomas Jungblut
ab3c530b92 add linearizability nightlies for release 3.4/3.5
This CL refactors the tests to reuse a single workflow that has
parameters. This is then reused for PRs/pushes and the nightlies.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-16 11:00:16 +01:00
Sahdev Zala
7daec2928a
Merge pull request #15071 from wafuwafu13/refactor-gettoken
clientv3: refactor getToken automatically
2023-01-15 18:26:21 -05:00
Benjamin Wang
d31a0ee88a
Merge pull request #15105 from serathius/linearizability-nightly-timeout
tests: Reduce number of runs in nightly action
2023-01-15 07:21:30 +08:00
Marek Siarkowicz
5b8d19c7b3 tests: Reduce number of runs in nightly action
Single run takes up to 30s. Let's reduce number of runs to reduce chance
of timeout.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-14 09:29:12 +01:00
Marek Siarkowicz
d37f9b2092
Merge pull request #15101 from serathius/linearizability-history-patch-window
tests: Fix history patch window
2023-01-14 09:20:14 +01:00
Marek Siarkowicz
1257d0d919 tests: Fix history patch window
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-13 16:19:20 +01:00
Marek Siarkowicz
6315f1cfdc
Merge pull request #15093 from geetasg/lease_support_review_feedback
Lease support for linearizability tests :  address review feedback
2023-01-13 09:15:54 +01:00
Benjamin Wang
0ccde80d22 changelog: add items to cover the issue of prmoting a non-started learner member
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-13 15:22:55 +08:00
Benjamin Wang
66bcb08a23
Merge pull request #15094 from fuweid/changelog-update
CHANGELOG: add dep update item to 3.4
2023-01-13 11:49:08 +08:00
Wei Fu
7434636424 CHANGELOG: add dep update item to 3.4
It is used to fix grpc-gateway error handler issue.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-13 11:12:36 +08:00
Geeta Gharpure
6106912338 Lease support for linearizability tests : Updated as per review feedback.
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-01-12 23:25:40 +00:00
Marek Siarkowicz
715a0047fa
Merge pull request #15091 from serathius/linearizability-stop-proxy
tests: Move stopping proxy to after process stop to speed up cluster …
2023-01-12 23:46:53 +01:00
Marek Siarkowicz
2fcb05710d tests: Move stopping proxy to after process stop to speed up cluster shutdown
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-12 15:17:34 +01:00
Marek Siarkowicz
7eb6f66b17
Merge pull request #15084 from serathius/linearizability-lease-timeout
tests: Fix putWithLease traffic timeout/limit and double overall timeout to reduce number of failed requests
2023-01-12 13:49:44 +01:00
Marek Siarkowicz
bff3d4a592 tests: Fix putWithLease traffic timeout/limit and double overall timeout to reduce number of failed requests
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-12 10:17:54 +01:00
Marek Siarkowicz
2b45023364
Merge pull request #15078 from serathius/linearizability-patch-operations
tests: Use watch events to patch history to speed up linearization
2023-01-12 10:09:01 +01:00
Marek Siarkowicz
7b2dfece70 tests: Use watch events to patch history to speed up linearization
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-12 09:31:23 +01:00
Marek Siarkowicz
3306639b76
Merge pull request #15080 from geetasg/lease_support_refactor
Add support for lease api to linearizability tests
2023-01-11 15:34:36 +01:00
Benjamin Wang
ef917f1efd
Merge pull request #15068 from ahrtr/last_wal_rec_corrupt_main_20220107
etcdserver: process the case of the last WAL record being partially synced to disk [backport 3.5]
2023-01-11 18:06:46 +08:00
Benjamin Wang
d3b753e27a
Merge pull request #15081 from yanggangtony/go-version
Bump go to 1.19.5
2023-01-11 17:22:03 +08:00
Benjamin Wang
3e48a59c9e
Merge pull request #15070 from ahrtr/changelog_wal_record_partially_synced_20230108
changelog: add 3.5 item to cover the fix for last partically synced WAL record
2023-01-11 16:38:02 +08:00
yanggang
ebf1e3bb1a
Bump go to 1.19.5
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-01-11 14:42:31 +08:00
Geeta Gharpure
5b84526e9a Add support for lease api to linearizability tests
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-01-11 05:19:57 +00:00
Marek Siarkowicz
ff898640a5
Merge pull request #15044 from serathius/linearizability-watch
Watch events during linearizability test and compare history
2023-01-10 17:59:04 +01:00
Marek Siarkowicz
8a9f848d33 tests: Refactor how linearizability test components are run in parallel
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-10 15:12:12 +01:00
Marek Siarkowicz
6821e226dd tests: Watch events during linearizability test and compare history
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-10 15:11:23 +01:00
Marek Siarkowicz
2965817150
Merge pull request #15046 from serathius/linearizability-failpoints-available
tests: Trigger only failpoints available in binary
2023-01-10 09:15:20 +01:00
Benjamin Wang
8134b8b46d
Merge pull request #15073 from etcd-io/dependabot/go_modules/server/golang.org/x/net-0.5.0
build(deps): bump golang.org/x/net from 0.4.0 to 0.5.0 in /server
2023-01-10 10:14:43 +08:00