Benjamin Wang
05d32d4d1b
Merge pull request #21122 from zhijun42/fix-lease-keep-alive-unavailable
...
lease: Fix incorrect gRPC Unavailable on client cancel during LeaseKeepAlive forwarding
2026-02-03 09:50:05 +00:00
Zhijun
b54c88406f
Helps solve the leaseKeepAlive grpc Unavailable issue while maintaining existing behavior
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
2026-02-03 09:14:04 +08:00
Zhijun
28d636e67b
Extend the existing TestLeaseWithRequireLeader with server error metric
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
2026-01-16 18:43:04 +08:00
Zhijun
1b147a1e0c
Consolidate gofail check in integration tests
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
2026-01-15 22:13:15 +08:00
Zhijun
932dc99f13
lease: Add new test to catch NoLeader error when client not using WithRequireLeader
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
2026-01-15 20:51:11 +08:00
Zhijun
ef17b5d5e2
Migrate TestV3LeaseRequireLeader into TestV3LeaseKeepAliveForwardingCatchError
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
Use 3-node cluster
Signed-off-by: Zhijun <dszhijun@gmail.com >
Use smart math
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com >
2026-01-14 22:30:12 +08:00
Zhijun
86bd05c37b
Add an integration test to reproduce incorrect gRPC Unavailable on client cancel during LeaseKeepAlive forwarding
...
Signed-off-by: Zhijun <dszhijun@gmail.com >
Address feedback
Signed-off-by: Zhijun <dszhijun@gmail.com >
Rename sleep function and pass duration
Signed-off-by: Zhijun <dszhijun@gmail.com >
Use require.Positive instead
Signed-off-by: Zhijun <dszhijun@gmail.com >
Assert client's canceled error code
Signed-off-by: Zhijun <dszhijun@gmail.com >
2026-01-13 09:34:22 +08:00
Antonio Ojea
87de8541ae
enable linter for deprecated functions
...
enable the linter and just tag each exception with a TODO so we
have identified the existing ones but we can gate to avoid adding
new deprecated functions.
Signed-off-by: Antonio Ojea <aojea@google.com >
2026-01-09 16:35:01 +00:00
shenmu.wy
8b78ddd9e7
fix assert message in clientv3 leasing_test
...
Signed-off-by: shenmu.wy <shenmu.wy@antfin.com >
2025-10-27 11:39:41 +08:00
Ivan Valdes
343f7242f3
Enable goheader golangi-lint linter
...
Update source code files that were missing or had incorrect license
headers. For those that had the incorrect license, set the date to 2025.
Signed-off-by: Ivan Valdes <ivan@vald.es >
2025-10-19 21:36:39 -07:00
Ivan Valdes
51a8be015f
Address misspell linter issues
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2025-10-17 13:26:23 -07:00
Benjamin Wang
22758cfb7b
Fix endpoint status not retuning the correct storage quota
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-10-10 18:41:18 +01:00
Marek Siarkowicz
5ec40e3bf2
Merge pull request #20614 from apullo777/progress-notify
...
cache: make the cache progress-aware
2025-10-02 13:42:51 +02:00
Peter Chang
ed1d377da9
cache: make cache progress-aware
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-10-01 20:21:30 +00:00
Chun-Hung Tseng
c4ac138b8b
Fix an error discovered by etcd-pull-verify
...
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-09-26 06:46:02 +02:00
Marek Siarkowicz
37833306e7
Remove "2" from integration import
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2025-09-24 11:40:55 +02:00
Marek Siarkowicz
161cb3d42a
Collect all watch tests in single directory
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2025-09-23 20:29:57 +02:00
Marek Siarkowicz
afeab20ac5
Reject watch request with -1 revision and make rangeEvents safe against negative revision
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2025-09-23 12:25:37 +02:00
Peter Chang
74a760cee2
Split TestCacheWithPrefixGet into client and cache-specific tests
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-09-11 13:33:42 +00:00
Marek Siarkowicz
963a72e241
Merge pull request #20584 from yagikota/migrate-hashkv-test
...
tests: migrate hashkv tests(e2e/integration) to common test framework
2025-09-01 08:52:40 +02:00
Kota
56231c57eb
tests: migrate hashkv tests(e2e/integration) to common test framework
...
Signed-off-by: Kota <mdryzk64smsh@gmail.com >
2025-08-31 11:29:52 +09:00
Peter Chang
56ea9379e4
cache: assert ErrFutureRev in testGet
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-29 14:07:35 +00:00
Marek Siarkowicz
6f3e25b053
Merge pull request #20564 from apullo777/implement-snapshots
...
cache: implement snapshots & enable cache.Get(rev>0)
2025-08-29 15:33:02 +02:00
Peter Chang
a95e9ceb6e
cache: implement snapshots & enable cache.Get(rev>0)
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-29 12:11:20 +00:00
Peter Chang
f94e8c77cf
cache: rename TestCacheWithoutPrefixGet test cases for clarity
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-26 17:14:28 +00:00
Benjamin Wang
3f951aca14
Merge pull request #20525 from linux-on-ibm-z/big-endian-TestCorruptedBackupFileCheck
...
tests: skip TestCorruptedBackupFileCheck test on big endian platforms
2025-08-21 09:23:00 +01:00
Marek Siarkowicz
70da4347bb
Drop TestCacheWatchOldRevisionCompacted test as it's too flaky
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2025-08-20 11:43:26 +02:00
Jonathan Albrecht
14875cf5cd
tests: skip TestCorruptedBackupFileCheck test on big endian platforms
...
This skips the TestCorruptedBackupFileCheck test that uses a little endian
format file as test input and causes the test to fail for the wrong reason.
Signed-off-by: Jonathan Albrecht <jonathan.albrecht@ibm.com >
2025-08-19 15:45:56 -04:00
Aleksander Mistewicz
57870e43bb
Add OpenTelemetry Spans to Lease methods
...
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-08-19 17:21:34 +02:00
Aleksander Mistewicz
7f015aa3c2
Add more attributes to OpenTelemetry Txn spans
...
Add new helper functions and move them to a separate file.
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-08-19 16:29:50 +02:00
Manuel Rüger
a59c3747fa
chore: Replace which with command -v
...
command -v is a shell built-in, while which requires a separate binary.
Signed-off-by: Manuel Rüger <manuel@rueg.eu >
2025-08-15 17:49:24 +02:00
Marek Siarkowicz
a8396186ac
Merge pull request #20464 from yagikota/1367-migrate-e2e-ctl-v3-grpc-test
...
tests: Migrate grpc tests(e2e/integration) to the common framework
2025-08-13 17:20:10 +02:00
Kota
1f7163f559
tests: migrate grpc tests(e2e/integration) to common test framework
...
Signed-off-by: Kota <mdryzk64smsh@gmail.com >
2025-08-13 22:51:49 +09:00
Aleksander Mistewicz
c875a1e24f
Update tracing integration test for Watch to use more detailed spans
...
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-08-12 13:33:21 +02:00
Peter Chang
b3261e8d8e
cache: consolidate ErrKeyRangeInvalid assertion in TestCacheWithPrefixGet
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-06 20:02:15 +00:00
Peter Chang
ccf605f918
refactor TestCacheWithoutPrefixGet for different initialization scenarios
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-05 17:09:58 +00:00
Peter Chang
33ce465fdf
cache: add storage backed by Range(rev=0, serializable) + watch demux
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-08-04 14:31:47 +00:00
Aleksander Mistewicz
e2caff5b76
test: Add missing keys_only attribute to tracing test
...
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-07-24 15:10:07 +02:00
Peter Chang
512c3f074d
cache: rename ErrUnsupportedWatch, add ErrKeyRangeInvalid
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-23 19:16:14 +00:00
Peter
7137745866
cache: handle unsupported watch opts ( #20363 )
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-23 08:28:36 -07:00
Marek Siarkowicz
7b9ea29f9a
Merge pull request #20347 from apullo777/arbitrary-rev
...
cache: enable Watch on arbitrary start_revision
2025-07-18 00:00:44 +02:00
Peter Chang
05f35c4cc3
cache: enable Watch on arbitrary start_revision
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-17 21:14:05 +00:00
Peter Chang
7ae29499eb
cache: improve tests to validate atomic grouping and monotonic revisions
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-17 14:14:03 +00:00
Peter Chang
34e3ad26d6
cache: refactor tests into predix vs. no-prefix
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-16 14:11:41 +00:00
Marek Siarkowicz
e061aa27db
Merge pull request #20338 from AwesomePatrol/convert-tracing-integration-to-table
...
Convert tracing integration tests to table tests
2025-07-16 13:52:48 +02:00
Peter Chang
792f763e83
enable range/prefix/fromKey key filtering
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-16 10:46:47 +00:00
Aleksander Mistewicz
baf616a35c
Use cmp.Diff in tracing integration test
...
It highlights differences in Attributes and Events fields.
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-07-15 17:48:41 +02:00
Aleksander Mistewicz
1223406a7b
Convert tracing integration tests to table tests
...
Review comment:
https://github.com/etcd-io/etcd/pull/20325#discussion_r2198317005
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-07-15 10:47:02 +02:00
Aleksander Mistewicz
bf5f9af3ee
Update tracing integration tests to verify creation of new Spans
...
Signed-off-by: Aleksander Mistewicz <amistewicz@google.com >
2025-07-10 15:33:43 +02:00
Peter Chang
5dde6104e0
cache: batch events with identical revision into one watch response
...
Signed-off-by: Peter Chang <peter.yaochen.chang@gmail.com >
2025-07-08 13:41:21 +00:00