88cd0fe695
Refresh minor dependencies.
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-06-17 10:23:03 +02:00
e7a84b69c8
Update zap to 1.21.
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-06-17 10:05:25 +02:00
8ac23dad88
Merge pull request #14125 from ptabor/20220615-update-grpc2
...
Update to grpc-1.47 (and fix the connection-string format)
2022-06-17 10:04:11 +02:00
17c1dcd614
Update grpc to 1.47 and go-cmp to 0.5.8.
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-06-17 08:57:22 +02:00
8038e876d3
replace ioutil with os package
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-06-17 10:11:30 +08:00
2c12954158
Merge pull request #14049 from serathius/compact-hash
...
Calculate hash during compaction
2022-06-14 11:10:19 +02:00
9612fc1194
tests: Unify TestCompactionHash and extend it to also Delete keys and Defrag
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-06-13 18:20:19 +02:00
f5eadf5452
tests: Add tests for HashByRev HTTP API
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-06-13 18:20:19 +02:00
1581eef888
tests: Add integration tests for compact hash
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-06-13 18:20:19 +02:00
5f8cd5bd39
Replace all etcd versions with the centralized definitions
...
We have already defined all the constant etcd versions in the
centralized place api/version/version.go. So we should replace all
the versions with the centralized definitions.
2022-06-13 14:08:39 +08:00
5097b33ab9
Rename etcdserver/etcderrors package to etcdserver/errors.
2022-05-20 14:32:04 +02:00
fc6a6c3c27
Move etcdserver/errors.go to sepatate package to avoid cyclic dependencies.
2022-05-20 14:32:04 +02:00
651de5a057
Rename EtcdServer.Id with EtcdServer.MemberId.
...
It was misleading and error prone vs. ClusterId.
2022-05-20 14:32:04 +02:00
ee08770bfb
tests: Make common framework context aware
2022-05-16 14:35:44 +02:00
29f090b5c0
Merge pull request #14029 from serathius/spawn-json-command
...
tests: Refactor spawn json command
2022-05-14 05:06:03 +08:00
83a4309f3b
tests: Refactor spawn json command
2022-05-13 15:04:45 +02:00
9beb29916e
tests: Extract cluster test cases
2022-05-13 14:41:53 +02:00
1e6163ba27
remove v2 http proxy in 3.6
2022-05-13 17:44:58 +08:00
55f0c96fa0
tests: Migrate Txn tests to common functional test framework
2022-05-11 10:33:47 +05:30
066e510731
Merge pull request #14020 from chaochn47/role_test
...
migrate e2e & integration role_test to common
2022-05-10 23:39:14 +02:00
e004c91d36
migrate e2e & integration role_test to common
2022-05-10 10:17:16 -07:00
e292e5b0b4
tests: Apply suggestions from code-review
2022-05-06 12:09:44 +02:00
a65f7da5cb
server: Implement HA downgrade test
2022-05-06 12:09:44 +02:00
c50fbb9ad6
tests: Retry validating version during downgrades
2022-05-06 12:09:44 +02:00
c9af75dd8d
tests: Improve logging in downgrade tests
2022-05-06 12:09:43 +02:00
7b04674d17
server: Move fatal calls out of internal function to make stacktrace cleaner
2022-05-06 12:09:43 +02:00
75449c075d
tests: Allow sepecting member to in curl commands
2022-05-06 12:09:43 +02:00
923096a2bb
tests: Simplify downgrade tests
2022-05-06 12:09:43 +02:00
3f05f7de92
tests: Use restart in downgrade tests
2022-05-06 12:09:43 +02:00
26f42e7a9e
server: Apply review comments and split basic handler
2022-05-05 09:52:14 +02:00
722ec487df
server: Split metrics and health code
2022-05-05 09:52:14 +02:00
600ee13ac0
server: Cover V3 health with tests
2022-05-05 09:52:14 +02:00
0096d2ecdb
server: Remove unused NewClientHandler
2022-05-05 09:52:13 +02:00
755e2e7755
fix data race in testWatchOverlapContextCancel #14003
2022-05-01 21:12:38 +08:00
00d6d40aea
Merge pull request #13940 from lavacat/leases-list-test
...
tests/common/lease: don't use revision to wait for leases
2022-04-29 10:12:18 +02:00
52ea811af8
Merge pull request #13966 from VladSaioc/blocking-readyc
...
Fixed potential goroutine leak due to p.Ready() receive in pkg/proxy and dependents.
2022-04-28 16:12:02 +02:00
7ebebb4ff6
Merge pull request #13969 from cmurphy/update-crypto
...
*: Update golang.org/x/crypto to latest
2022-04-28 12:35:14 +02:00
24002fb099
allocate unique port for each member in test cases
2022-04-26 12:32:00 +08:00
67f3bb3ad4
tests/common/lease: don't use revision to wait for leases
...
Problem: TestLeaseGrantAndList is flaky because lists won't match at the end.
Test uses revision to verify that all members got leases. But checking for revision isn't enough.
Solution: use size of the list to stop polling.
2022-04-25 10:24:32 -07:00
27bd78f6ab
Update golang.org/x/crypto to latest
...
Update crypto to address CVE-2022-27191.
The CVE fix is added in 0.0.0-20220315160706-3147a52a75dd but this
change updates to latest.
2022-04-25 09:52:12 -07:00
887f95d0d3
Merge pull request #13963 from ptabor/20220412-verify-assert
...
Add verification consistent index is (nearly) never decreasing
2022-04-25 10:13:44 +02:00
d6368a20cf
etcdctl: Remove V2 API commands
2022-04-24 12:08:42 +02:00
d69e07dd3a
Verification framework and check whether cindex is not decreasing.
2022-04-22 12:32:05 +02:00
00ca558167
Fixed goroutine leak on NewServer
2022-04-22 08:57:19 +02:00
6eef7ede40
Update conssitent_index when applying fails
...
When clients have no permission to perform whatever operation, then
the applying may fail. We should also move consistent_index forward
in this case, otherwise the consitent_index may smaller than the
snapshot index.
2022-04-20 21:44:48 +08:00
842fed52c7
use lineariziable range request in TestKVGet
2022-04-18 08:56:19 +08:00
0dae4b3b1e
rollback the opentelemetry bumpping to recover the pipeline failures
2022-04-14 16:13:28 +08:00
eab1e0c5d5
go.mod: upgrade opentelemetry deps
...
Downstream users of etcd experience build issues when using dependencies
which require more recent (incompatible) versions of opentelemetry. This
commit upgrades the dependencies so that downstream users stop
experiencing these issues.
2022-04-13 07:14:10 -07:00
6cb7372e6d
clientv3: disable mirror auth test with proxy
2022-04-12 13:42:13 +00:00
e324cc1cbe
cv3/mirror: Fetch the most recent prefix revision
...
When a user sets up a Mirror with a restricted user that doesn't have
access to the `foo` path, we will fail to get the most recent revision
due to permissions issues.
With this change, when a prefix is provided we will get the initial
revision from the prefix rather than /foo. This allows restricted users
to setup sync.
2022-04-11 13:42:03 +00:00