Benjamin Wang
6c5fde5138
Merge pull request #15985 from CaojiamingAlan/check_revision_before_write_hash
...
Check ScheduledCompactKeyName and FinishedCompactKeyName before writing hash
2023-06-08 10:10:45 +08:00
caojiamingalan
b9e30bf878
etcdserver: add e2e test to reproduce the incorrect hash issue when resuming scheduled compaction.
...
check ScheduledCompactKeyName and FinishedCompactKeyName
before writing hash to hashstore. If they do not match, then it means this compaction has once been interrupted and its hash value is invalid. In such cases, we won't write the hash values to the hashstore, and avoids the incorrect corruption alarm.
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-06-07 19:54:09 -05:00
Chao Chen
b2c39fc8e6
2023-06-06: bump up dependencies update identified by dependabot
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-06-06 20:18:44 -07:00
Marek Siarkowicz
7cc98e6392
Merge pull request #15959 from serathius/robustness-watch-client
...
tests/robustness: Use traffic.RecordingClient in watch
2023-05-26 17:45:57 +02:00
Marek Siarkowicz
16bf0f6641
tests/robustness: Use traffic.RecordingClient in watch
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-25 22:17:23 +02:00
Bogdan Kanivets
ef91e8ae78
dependency: bump github.com/stretchr/testify from 1.8.2 to 1.8.3
...
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com>
2023-05-24 23:58:13 -07:00
Marek Siarkowicz
04346e870f
Merge pull request #15909 from serathius/robustness-unique-revision
...
tests/robustness: Expect revisions to be unique for Kubernetes Traffic
2023-05-24 09:20:17 +02:00
Marek Siarkowicz
4872b679a5
tests/robustness: Expect revions to be unique for Kubernetes Traffic
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-23 15:51:10 +02:00
Wei Fu
befb283cca
tests: deflake TestKVDelete/ClientAutoTLS
...
For the sub test TestKVDelete/ClientAutoTLS, the timeout might be caused
by IO or task scheduled. It's really hard to reproduce this case. And
we don't add `VERBOSE=1` for e2e test, the pipeline doesn't show the
`EXPECT_DEBUG` log in time. It's also hard to debug when flaky case
show. So, this patch will enable `VERBOSE=1` to get timestamp in time.
And the one operation `del a c -w json` will be performed after two seconds
delay, we can increase the timeout from 15s to 30s just in case that the
put or del operations take more time in unstable env.
```
Warning: Keys between "a" and "c" will be deleted. Please interrupt the
command within next 2 seconds to cancel.
```
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-05-19 18:22:18 +08:00
Marek Siarkowicz
f3c9db9c46
Merge pull request #15893 from serathius/robustness-validate-client-watch
...
tests/robustness: Validate all etcd watches opened to etcd
2023-05-16 10:51:55 +02:00
Marek Siarkowicz
efcbd95f71
Merge pull request #15889 from serathius/robustness-model-test
...
tests/robustness: Unify model test cases
2023-05-16 10:41:05 +02:00
Marek Siarkowicz
6429f47631
tests/robustness: Validate all etcd watches opened to etcd
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-16 10:28:01 +02:00
Marek Siarkowicz
112aad1ea7
tests/robustness: Unify model test cases
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-16 10:13:08 +02:00
James Blair
5a5b5a1c5d
dependency: bump github.com/prometheus/client_golang from 1.15.0 to 1.15.1
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-05-16 09:26:44 +12:00
James Blair
1798730cd8
dependency: bump golang.org/x/crypto from 0.8.0 to 0.9.0
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-05-16 08:39:19 +12:00
Marek Siarkowicz
6e53792568
tests/robustness: Implement Kubernetes optimistic concurrency operations
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-15 13:45:27 +02:00
Marek Siarkowicz
911c40a347
tests/robustness: Implement kubernetes list watch protocol
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-15 10:11:05 +02:00
Marek Siarkowicz
05ed91d76d
Merge pull request #15892 from lavacat/main-mono-clock-watch
...
tests/robustness: use monotonic clock for watch events
2023-05-15 09:25:41 +02:00
Benjamin Wang
2df32102ca
Merge pull request #15835 from yellowzf/grpcproxy_fix_memberlist_results_not_update_when_proxy_node_down
...
grpcproxy: fix memberlist results not update when proxy node down
2023-05-15 13:34:05 +08:00
yellowzf
ca221208d2
grpcproxy: fix memberlist results not update when proxy node down
...
If start grpc proxy with --resolver-prefix, memberlist will return all alive proxy nodes, when one grpc proxy node is down, it is expected to not return the down node, but it is still return
Signed-off-by: yellowzf <zzhf3311@163.com>
2023-05-15 10:59:02 +08:00
Bogdan Kanivets
c338882d7a
tests/robustness: use monotonic clock for watch events
...
see: https://github.com/etcd-io/etcd/pull/15323
For consistency watch events should also use only time-measurement operations.
fixes: https://github.com/etcd-io/etcd/issues/15328
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com>
2023-05-14 12:58:13 -07:00
Benjamin Wang
52dfd4bbed
Merge pull request #15867 from chaochn47/auth_test_split_8
...
migrate e2e auth tests to common #8
2023-05-13 14:21:37 +08:00
Chao Chen
c846b087db
migrate e2e auth tests to common #8
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-05-12 22:51:47 -07:00
Marek Siarkowicz
2a0c989662
Merge pull request #15882 from serathius/robustness-txn-fields
...
tests/robustness: Improve naming of Txn fields
2023-05-12 13:34:02 +02:00
Marek Siarkowicz
831ce4c3cf
tests/robustness: Improve naming of Txn fields
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-12 13:10:25 +02:00
Benjamin Wang
67ec1a4d30
Merge pull request #15862 from pchan/bump_dependency
...
dependency: bump dependabot dependencies
2023-05-12 06:59:47 +08:00
Marek Siarkowicz
e9900f6fff
tests/robustness: Separate stream id from client id and improve AppendableHistory doc
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-11 21:03:52 +02:00
Marek Siarkowicz
9a922091ed
Merge pull request #15873 from serathius/robustness-safeguards
...
tests/robustness: Add safeguards to client and history
2023-05-11 13:37:42 +02:00
Marek Siarkowicz
962e15038e
tests/robustness: Add safeguards to client and history
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-11 13:12:09 +02:00
Marek Siarkowicz
d77c618e6a
Merge pull request #15874 from serathius/robustness-fix-traffic-pointer
...
tests/robustness: Fix pointer causing all cluster tests using kuberne…
2023-05-11 11:16:21 +02:00
Benjamin Wang
05b663fbe8
Merge pull request #15828 from chaochn47/add_leadership_transfer_coverage
...
tests/e2e: add graceful shutdown test
2023-05-11 07:39:25 +08:00
Benjamin Wang
e3db9dc616
Merge pull request #15868 from jmhbnz/main
...
tests: Deflake TestEtcdGrpcResolverRoundRobin
2023-05-11 05:08:53 +08:00
Marek Siarkowicz
165a76b506
tests/robustness: Fix pointer causing all cluster tests using kubernetes traffic
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-10 16:08:08 +02:00
Marek Siarkowicz
dd248518d1
tests/robustness: Move request progress field from traffic to watch config and pass testScenario to reduce number of arguments
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-10 11:43:02 +02:00
James Blair
3f5ad36039
Deflake TestEtcdGrpcResolverRoundRobin.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-05-10 21:03:01 +12:00
Chao Chen
f31d0eafb9
tests/e2e: add graceful shutdown test
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-05-09 17:08:53 -07:00
Benjamin Wang
b404d25d84
Merge pull request #15741 from AngstyDuck/set-default-value-for-AutoCompactionMode
...
server: default value for config file field auto-compaction-mode is n…
2023-05-10 05:44:16 +08:00
AngstyDuck
a7344da7d3
server: default value for config file field auto-compaction-mode is now 'periodic'; added additional checks if auto-compaction-mode is undefined
...
Signed-off-by: AngstyDuck <solsticedante@gmail.com>
2023-05-09 23:10:44 +08:00
Prasad Chandrasekaran
c863f1f8c0
dependency: bump dependabot dependencies
...
Signed-off-by: Prasad Chandrasekaran <prasadc@vmware.com>
2023-05-09 18:38:35 +05:30
Marek Siarkowicz
ad20230e07
test/robustness: Create dedicated traffic package
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-09 10:50:13 +02:00
Marek Siarkowicz
f6161673af
Merge pull request #15851 from serathius/robustness-generic
...
tests/robustness: Make weighted pick random generic
2023-05-09 10:36:11 +02:00
Marek Siarkowicz
b14b468661
tests/robustness: Make weighted pick random generic
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-08 19:58:38 +02:00
Marek Siarkowicz
7c68be4cf3
tests/robustness: Implement Range limit and count
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-07 09:32:07 +02:00
Marek Siarkowicz
40f71ef3c6
tests/robustness: Implement delete request for kubernetes scenario
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-05 13:40:46 +02:00
Marek Siarkowicz
92366a5338
tests/robustness: Split model code into deterministic and non-deterministic
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Co-authored-by: chao <54131596+chaochn47@users.noreply.github.com>
2023-05-05 12:25:10 +02:00
Marek Siarkowicz
cfe154209c
tests/robustness: Separate describe model functions to dedicated file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-04 14:03:18 +02:00
Marek Siarkowicz
2c16812841
Merge pull request #15817 from serathius/robustness-k8s-1
...
tests/robustness: Implement first step in validating the Kubernetes-etcd contract
2023-05-04 13:52:25 +02:00
Marek Siarkowicz
9b5680c5f1
tests/robustness: Implement first step in validating the Kubernetes-etcd contract.
...
* Use mod revision for optimistic concurrency.
* Introduce range requests as more general then get
* Add kubernetes specific traffic generation, for now using pull, but
expected to evolve to use watch.
* Introduce kubernetes specific test scenario
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-04 13:26:54 +02:00
Hitoshi Mitake
49b59cc8e5
Merge pull request #15656 from mitake/lease-timetolive-auth
...
protect LeaseTimeToLive with RBAC
2023-05-02 23:02:29 +09:00
Benjamin Wang
b089474b01
Merge pull request #15795 from jmhbnz/deflake-roundrobin-resolver-test
...
tests: Deflake TestEtcdGrpcResolverRoundRobin
2023-05-02 06:09:46 +08:00