Sahdev Zala
2923960ecd
Merge pull request #13693 from chaochn47/fix_coverage
...
Fix coverage failures
2022-02-14 15:03:56 -05:00
Marek Siarkowicz
310de9bd8b
Merge pull request #13612 from serathius/write-only
...
server: Make --v2-deprecation=write-only the default and remove not-y…
2022-02-14 17:09:42 +01:00
Piotr Tabor
9ebaf58dd6
Merge pull request #13694 from serathius/timeout
...
tests: Fix cluster version and downgrade request timeout
2022-02-14 14:53:34 +01:00
Marek Siarkowicz
3de5e221a8
tests: Fix cluster version and downgrade request timeout
...
Returning nil means that raft.Trigger was not called, causing member to
wait infinitly for response for response on raft request.
2022-02-14 14:19:06 +01:00
Chao Chen
fd79af9ee7
load all leases from backend
2022-02-13 20:30:20 -08:00
sitchenchao
b683aa1254
fix ctl_v3_kv_no_quorum_test.go and coverage failures
2022-02-12 18:00:02 -08:00
Sahdev Zala
bba3937f69
Merge pull request #13649 from serathius/scripts
...
Cleanup scripts in root directory
2022-02-11 15:40:53 -05:00
Marek Siarkowicz
bcadd039a1
Merge pull request #13673 from ahrtr/replace_gobin
...
Replace gobin with go install
2022-02-11 10:26:31 +01:00
Marek Siarkowicz
20c89df5e5
Merge pull request #13525 from ahrtr/do_not_wait_ReadyNotify_infinitely
...
Etcd server shouldn't wait for the ready notification infinitely on startup
2022-02-08 14:50:09 +01:00
ahrtr
900fc8dd7e
replace gobin with go install
...
The repository github.com/myitcv/gobin has already been archived,
and the `go install` command accepts arguments with version suffixs
starting from 1.16 (for example, go install example.com/cmd@v1.0.0).
So there is no reason to continue to use gobin.
2022-02-08 05:41:21 +08:00
Marek Siarkowicz
a1f3c2c7cc
server: Make --v2-deprecation=write-only the default and remove not-yet option
2022-02-02 13:55:52 +01:00
Marek Siarkowicz
396efd9608
Cleanup scripts in root directory
2022-02-02 13:50:44 +01:00
Marek Siarkowicz
986a2b51f4
Merge pull request #13636 from serathius/remove-v2-client
...
Remove v2 server
2022-02-02 11:41:56 +01:00
Marek Siarkowicz
902dc05014
tests: Update assertAuthority to explain filtering put method requests
2022-02-01 16:47:23 +01:00
Marek Siarkowicz
43c1631f26
tests: Use cmp.Equal to avoid mutating arguments
2022-02-01 16:47:18 +01:00
Piotr Tabor
a99c919a9f
Merge pull request #13651 from serathius/coverage
...
Re-enable code coverage upload
2022-01-28 13:54:33 +01:00
ahrtr
a879ccf152
updated servePeers to remvoe the grpc server
2022-01-27 16:22:01 +08:00
ahrtr
1713dc67b5
etcd server shouldn't wait for the ready notification infinitely on startup
2022-01-27 16:19:20 +08:00
Marek Siarkowicz
50b09d4f88
Re-enable code coverage upload
2022-01-26 20:18:43 +01:00
Marek Siarkowicz
692b3c4cd7
server: Remove most of V2 API
2022-01-25 15:24:13 +01:00
Marek Siarkowicz
37879eb5f9
test: Migrate WaitMembersMatch to V3 API
2022-01-25 13:56:17 +01:00
Marek Siarkowicz
c59694d41e
test: Migrate WaitMembersForLeader to V3 API
2022-01-24 17:26:51 +01:00
Marek Siarkowicz
81490c25d1
test: Migrate WaitStarted to V3 API
2022-01-24 17:26:50 +01:00
Marek Siarkowicz
ee6306b9f9
Migrate RemoveMember and AddMember to V3 API
2022-01-24 17:01:22 +01:00
Eng Zer Jun
e9edc5432c
*: use T.TempDir
to create temporary test directory
...
The directory created by `T.TempDir()` and is automatically removed when
the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-01-25 00:00:46 +08:00
Marek Siarkowicz
3788523a3e
tests: Move revision tests out of concurrency
2022-01-24 15:33:30 +01:00
Marek Siarkowicz
a53074542b
test: Run v2 discovery tests on previous version binary
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
264fdbb6a1
test: Remove separation between V2 and V3 cluster in integration tests
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
7b365e48d3
test: Remove usage of V2 Put API in tests
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
de30257d79
test: Always run server with grpc enabled
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
51f72915e4
test: Move UseGRPC to member config
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
87c8e8b868
test: Migrate to ClusterV3 cluster in integration tests
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
69fc517e56
test: Add StrictReconfigCheck to cluster
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
98242da5f1
test: Handle adding new members for clusters with TCP enabled
2022-01-20 14:10:09 +01:00
Marek Siarkowicz
5bcbf77980
tests: Move client to member struct
2022-01-20 14:10:09 +01:00
Piotr Tabor
fdd98477ef
Update dep: require gopkg.in/yaml.v2 v2.2.8 -> v2.4.0 due to: CVE-2019-11254
2022-01-17 16:52:58 +01:00
Piotr Tabor
19cb0a4252
Merge pull request #13519 from ahrtr/enhance_make_mirror_command
...
Add a new flag "--rev" to make-mirror command to support incremental mirror
2022-01-15 17:02:12 +01:00
Piotr Tabor
1237b3576c
Merge pull request #13487 from mrueg/go-1.17.3
...
*: Bump to go 1.17.6
2022-01-15 17:01:17 +01:00
Piotr Tabor
b2f6ffdd81
Merge pull request #13595 from serathius/enable-v2
...
server: --enable-v2 and --enable-v2v3 is decomissioned
2022-01-15 16:48:29 +01:00
Piotr Tabor
f75549d53b
Merge pull request #13571 from yank1/update-cobra-version
...
Update Cobra version to 1.2.1
2022-01-14 14:54:28 +01:00
Marek Siarkowicz
ee5ef42c5c
server: --enable-v2 and --enable-v2v3 is decomissioned
2022-01-14 13:19:30 +01:00
Marek Siarkowicz
eac6d71352
tests: Add integration test for revision monotonic under failure injection
2022-01-12 11:51:12 +01:00
Manuel Rüger
ce086a4ba6
*: Bump to go 1.17.6
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-01-12 03:13:27 +01:00
Manuel Rüger
746c0ea276
tests/Dockerfile: Update base to ubuntu 21.10
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-01-12 03:00:08 +01:00
Manuel Rüger
cf7e8b3535
go.mod: Bump golang.org/x/net dependency; regenerate go.sum
...
Bumps golang.org/x/net dependency due to fix CVE-2021-44716
as requested in https://github.com/etcd-io/etcd/pull/13487#issuecomment-997065540
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-01-12 03:00:08 +01:00
Manuel Rüger
ce50f68166
*: Bump to go 1.17.5
2022-01-12 03:00:08 +01:00
Yap Sok Ann
17fd2e7282
Disable auth gracefully without impacting existing watchers
...
This attempts to fix a special case of the problem described in #12385 ,
where trying to do `clientv3.Watch` with an expired token would result
in `ErrGRPCPermissionDenied`, due to the failing authorization check in
`isWatchPermitted`. Furthermore, the client can't auto recover, since
`shouldRefreshToken` rightly returns false for the permission denied
error.
In this case, we would like to have a runbook to dynamically disable
auth, without causing any disruption. Doing so would immediately expire
all existing tokens, which would then cause the behavior described
above. This means existing watchers would still work for a period of
time after disabling auth, until they have to reconnect, e.g. due to a
rolling restart of server nodes.
This commit adds a client-side fix and a server-side fix, either of
which is sufficient to get the added test case to pass. Note that it is
an e2e test case instead of an integration one, as the reconnect only
happens if the server node is stopped via SIGINT or SIGTERM.
A generic fix for the problem described in #12385 would be better, as
that shall also fix this special case. However, the fix would likely be
a lot more involved, as some untangling of authn/authz is required.
2021-12-31 14:39:46 +07:00
Your Name
77bf0a5a9e
update cobra version to 1.2.1
...
Signed-off-by: yankay <kay.yan@daocloud.io>
2021-12-29 17:35:25 +08:00
ahrtr
661e0a91ef
added a new flag --rev to make-mirror command to support incremental mirror
2021-12-22 16:59:44 +08:00
Marek Siarkowicz
7d10899d7f
server: Require either cluster version v3.6 or --experimental-enable-lease-checkpoint-persist to persist lease remainingTTL
...
To avoid inconsistant behavior during cluster upgrade we are feature
gating persistance behind cluster version. This should ensure that
all cluster members are upgraded to v3.6 before changing behavior.
To allow backporting this fix to v3.5 we are also introducing flag
--experimental-enable-lease-checkpoint-persist that will allow for
smooth upgrade in v3.5 clusters with this feature enabled.
2021-12-02 12:26:47 +01:00