Madhav Jivrajani
b51a834645
tests/robustness: allow persisting result reports for successful runs
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 16:28:47 +05:30
Madhav Jivrajani
cdd018ad2a
tests/robustness: add a robustness test for validating create events
...
Split off valdiating create events from the prevKV test.
The added test tests the following two:
- A create event should not exist in our past history
- A non-create event should exist in our past history
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 16:28:44 +05:30
Madhav Jivrajani
4fa07a1c8a
tests/robustness: make merging histories work on []PersistedEvent
...
Event histories after merging serve as an authorotative list of
events that can be seen as ones persisted by etcd, we don't need
PrevValue as part of it.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 15:44:08 +05:30
Marek Siarkowicz
83817ac786
Merge pull request #17352 from MadhavJivrajani/with-prev-key-robustness-test
...
tests/robustness: add robustness test for watch with PrevKV()
2024-02-14 09:24:33 +01:00
Madhav Jivrajani
9aad6700d5
tests/robustness: add robustness test for watch with PrevKV()
...
Kubernetes relies on the PrevKV() option in the watches it opens
against etcd. This commit adds a robustness test to validate the
same.
A watch response returned with PrevKV() is valid if:
The value in current event's prevKV matches the previous
event's value of the same key if this is not a create event.
There are cases where there can be a prevKV for a create event
as well, for example if a watch is opened after the key is creatd.
Since we don't simulate for that, we don't check for that.
Further, this adjusts revision numbers such that we can successfully create
a new replay. Needed now since we will have unit tests with
and without PrevKV co-existing and we requite creation of a
new replay everytime we validate PrevKV.
We also regenerate test data with so that prevKV exists in it
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-13 22:55:57 +05:30
Benjamin Wang
a6d72d5fbc
dependency: bump golang.org/x/net from 0.20.0 to 0.21.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
dfff80a89e
dependency: bump golang.org/x/crypto from 0.18.0 to 0.19.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
236e8ca881
dependency: bump go.opentelemetry.io/otel from 1.22.0 to 1.23.1
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
5c1b43c079
Dependency: bump golang.org/x/sys from 0.16.0 to 0.17.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
5b2a9e2ab3
Remove the unused AuthTokenTTL parameter from integration test
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-11 14:09:43 +00:00
Benjamin Wang
25f91b4e50
Merge pull request #17384 from mitake/watch-auth-str
...
Remove string dependent error handling in watch and auth
2024-02-08 13:54:46 +00:00
Benjamin Wang
99e7a4cd89
Merge pull request #17392 from sharathsivakumar/shsi/bump_deps_15
...
Manually bump dependencies
2024-02-07 16:41:54 +00:00
Benjamin Wang
29600058d7
Merge pull request #17287 from nitishfy/Nitish/memberReplaceWithLearner
...
feat: add `memberReplaceLearnerTest` test
2024-02-07 16:32:39 +00:00
Sharath Sivakumar
759d88a990
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.19.0 to 2.19.1
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-02-07 16:15:49 +01:00
NitishKumar06
70cc19aad5
etcdserver: add memberReplaceLearnerTest to improve testing coverage
...
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
get learner member id
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
get learner member id
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
check for edge case
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
modify testcase to use var declaration
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
remove shadow delcaration of variables
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
resolve minor fixes
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
2024-02-06 20:05:16 +05:30
Hitoshi Mitake
617f1df443
Remove string dependent error handling in watch and auth
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
2024-02-06 19:25:53 +09:00
Sharath Sivakumar
60d642332c
dependency: bump github.com/cheggaaa/pb/v3 from 3.1.4 to 3.1.5
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-02-01 14:18:36 +01:00
Sharath Sivakumar
9ec752d0f3
dependency: bump google.golang.org/grpc from 1.60.1 to 1.61.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-02-01 13:57:32 +01:00
Sharath Sivakumar
aa81e57855
dependency: bump go.opentelemetry.io/proto/otlp from 1.0.0 to 1.1.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-02-01 13:51:29 +01:00
Madhav Jivrajani
f0f4e8a4e8
tests/robustness: fix out of index panic in model replay
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-01 16:14:35 +05:30
Marek Siarkowicz
4d3108246d
Merge pull request #17260 from serathius/validate-watch-without-event-history
...
Validate watch even if event history cannot be created
2024-01-25 16:01:01 +01:00
Benjamin Wang
d1cc01a574
Merge pull request #17319 from jmhbnz/weekly-dependency-update
...
[2024-01-25] Bump dependencies identified by dependabot
2024-01-25 10:02:42 +00:00
Marek Siarkowicz
7cd0b58ab5
Merge pull request #17261 from serathius/exploratory
...
Separate robustness test scenarios and increase number of times we run exploratory tests in nightly
2024-01-25 10:08:15 +01:00
James Blair
9cfbbb9556
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.46.1. to 0.47.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2024-01-25 15:26:26 +13:00
James Blair
3666454826
depdendency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.21.0 to 1.22.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2024-01-25 15:24:53 +13:00
James Blair
2edcf60b4f
depdendency: bump go.opentelemetry.io/otel from 1.21.0 to 1.22.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2024-01-25 15:19:09 +13:00
James Blair
7a7d4684df
depdendency: bump github.com/prometheus/common from 0.45.0 to 0.46.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2024-01-17 22:28:43 +13:00
Marek Siarkowicz
f0d73c9d12
Separate robustness test scenarios and increase number of times we run exploratory tests in nightly
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-01-16 17:17:54 +01:00
Marek Siarkowicz
c37991cf8b
Validate watch even if event history cannot be created
...
Creation of event history requires each client to return consistent
events. If clients observed inconsistent view of some revision, merging
will fail and return diff between two clients. This however doesn't
provide hint on what kind of issue happend.
This PR helps cases where there is an error with single watch
stream (like event duplication) by running normal watch validation even
without full event history.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-01-16 16:04:03 +01:00
Benjamin Wang
c8b4b168af
Merge pull request #17235 from fuweid/fix-17223
...
integration: deflake TestMaintenanceSnapshotCancel
2024-01-14 13:24:50 +00:00
Marek Siarkowicz
40f22e9319
Merge pull request #17176 from YaoC/fix-learner-metric
...
server: fix learner metric incorrect issue
2024-01-12 17:37:46 +01:00
Benjamin Wang
cf648e8503
bump raft to v3.6.0-alpha.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-12 15:30:11 +00:00
Benjamin Wang
f2ada58144
bump bbolt to 1.4.0-alpha.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-12 15:27:48 +00:00
Wei Fu
fdf1e28a3f
integration: deflake TestMaintenanceSnapshotCancel
...
Unlike SnapshotWithVersion, the client.Snapshot doesn't wait for first
response. The server could open db after we close connection or shutdown
the server. We can read few bytes to ensure server opens boltdb.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-12 19:24:10 +08:00
YaoC
f7ab7adf29
server: fix learner metric incorrect issue
...
Signed-off-by: YaoC <chengyao09@hotmail.com>
2024-01-12 09:36:33 +00:00
Benjamin Wang
b3bf59a355
Merge pull request #17195 from siyuanfoundation/txBuf1
...
Fix delete inconsistencies in read buffer
2024-01-11 08:21:47 +00:00
Siyuan Zhang
b3a5307640
add tests to test tx delete consistency.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-01-10 09:33:13 -08:00
Sharath Sivakumar
28f4c6fef6
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.18.1 to 2.19.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-01-09 16:26:47 +01:00
Sharath Sivakumar
98646057d6
dependency: bump golang.org/x/sys from 0.15.0 to 0.16.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-01-09 16:04:19 +01:00
Marek Siarkowicz
970abc211e
Merge pull request #17152 from serathius/logs-recover-backend
...
Improve logs around recovering snapshot backend and add an e2e test
2024-01-05 15:38:58 +01:00
Marek Siarkowicz
3471ef133d
Add an e2e test and robustness failpoint around recovering from snapshot backend
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-01-04 15:25:24 +01:00
Benjamin Wang
553d88cfd3
bump github.com/prometheus/client_golang to v1.18.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 16:52:42 +00:00
Sharath Sivakumar
c21b966478
dependency: bump google.golang.org/protobuf from 1.31.0 to 1.32.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-12-27 17:27:40 +01:00
dependabot[bot]
0c55ed7464
build(deps): bump google.golang.org/grpc from 1.59.0 to 1.60.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.59.0 to 1.60.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.59.0...v1.60.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-21 19:07:47 +00:00
Sharath Sivakumar
362477b077
dependency: bump golang.org/x/crypto from 0.16.0 to 0.17.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-12-21 18:19:10 +01:00
Marek Siarkowicz
538162ad2a
Test etcd fails to bootstrap with older db file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-12-20 16:32:27 +01:00
Jongwoo Han
08d799c4cc
Correct typo from 'Kuberntes' to 'Kubernetes'
...
Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
2023-12-20 18:09:31 +09:00
Benjamin Wang
f7be2dfa17
Merge pull request #16888 from greenmoon55/greenmoon55-patch-1
...
tests: add comments for clientv3test.TestWatchResumeInitRev
2023-12-16 20:35:43 +00:00
Benjamin Wang
f7ff898fd6
Resovle some review comments
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-15 17:53:36 +00:00
Benjamin Wang
67f17166bf
Safeguard lease operations by double checking the leadership
...
1. ignore old leader's leases revoking request
2. double check current member's leadership before perform lease renew request
3. etcdserve: ensure current member's leadership before performing lease checkpoint request
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-15 17:53:36 +00:00