Marek Siarkowicz
76cbfd3644
Use test cases from TestCheckTxn to test Put and Range
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-09-01 20:33:41 +02:00
Marek Siarkowicz
27633923e4
Merge pull request #16515 from serathius/test-txn
...
server: Test txn checking
2023-09-01 15:24:42 +02:00
Marek Siarkowicz
e1617f98ba
server: Test txn checking
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-09-01 14:51:22 +02:00
Marek Siarkowicz
bd7f0dab3c
server: Refactor checkTxn into single function handling all request types
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-08-29 11:36:03 +02:00
Geeta Gharpure
8729417cee
Preserve the order of steps done for snapshot
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-08-22 19:12:37 +00:00
Geeta Gharpure
59332dc194
Update to generate v2 snapshot from v3 state
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-08-21 19:18:11 +00:00
Benjamin Wang
e2e17c75fe
Merge pull request #16448 from testwill/pkg-import
...
chore: pkg import more than once
2023-08-21 18:11:06 +08:00
Marek Siarkowicz
9a6eab2d72
Merge pull request #16373 from serathius/unify-arguments
...
server: Unify arguments for mvcc methods
2023-08-21 10:09:10 +02:00
guoguangwu
f432c1cf20
chore: pkg import more than once
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-08-21 10:19:05 +08:00
Jes Cok
52748f60f3
all: stop using math/rand.Seed
...
Fixes #16428 .
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2023-08-20 16:34:44 +08:00
Marek Siarkowicz
d9408473c5
server: Unify arguments for mvcc methods
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-08-18 13:41:13 +02:00
Marek Siarkowicz
81ecac11cb
server: Separate txnRead from txnWrite
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-08-04 20:46:33 +02:00
Marek Siarkowicz
524fddc426
Merge pull request #16355 from serathius/txn-refactor
...
server: Separate internal txn functions for recursion and have public function create transaction and trace
2023-08-04 15:54:14 +02:00
Benjamin Wang
10c7e81cac
Merge pull request #16358 from ahrtr/remove_creds_bundle_20230802
...
clientv3: remove the experimental gRPC API grpccredentials.Bundle
2023-08-04 08:46:02 +01:00
Benjamin Wang
0021204c15
Merge pull request #16132 from geetasg/pr5
...
Add a method to export membership info to v2 store from RaftCluster
2023-08-04 08:43:27 +01:00
Marek Siarkowicz
fa21c07baa
server: Separate internal functions for recursion and have public function create transaction and trace
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-08-03 17:47:03 +02:00
Benjamin Wang
979102f895
clientv3: remove the experimental gRPC API grpccredentials.Bundle
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-08-02 19:35:51 +01:00
Marek Siarkowicz
53cbd81009
Separate Writer interface from BatchTx interfaces
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-07-31 10:18:01 +02:00
Geeta Gharpure
e5b7dde17e
Add a method to export membership info to v2 store from RaftCluster
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-07-28 16:55:41 +00:00
lan.tian
0f975acf2f
update typo in raft.go
...
Signed-off-by: lan.tian <lance5890@163.com>
2023-07-24 15:48:55 +08:00
iuriatan
abbfc2964a
Fix goword issue
...
Fix `make verify` issues after updating golangci-lint
Signed-off-by: iuriatan <iuriatan@gmail.com>
2023-07-14 16:46:26 -03:00
Benjamin Wang
f4444e8fb3
Merge pull request #16154 from CaojiamingAlan/uber_applier_test
...
add tests for uber applier
2023-07-06 20:00:11 +01:00
Benjamin Wang
e887e5291a
Merge pull request #16067 from geetasg/pr1
...
Adding test for updateClusterVersionV3
2023-07-06 08:36:19 +01:00
caojiamingalan
eff9517a90
etcdserver: add cluster id check for hashKVHandler
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-07-05 14:09:40 -05:00
caojiamingalan
ffe73f9a15
add tests for uber applier
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-06-30 22:03:29 -05:00
Benjamin Wang
22f9dac7b1
Merge pull request #15708 from chaochn47/confchange_raft_node_notifies_apply
...
raft node notifies configure when confChanged
2023-06-28 10:03:50 +01:00
Benjamin Wang
bda68d8d06
Merge pull request #16074 from geetasg/pr2
...
Enable test to verify membership recovery from backend
2023-06-27 20:24:51 +01:00
Chao Chen
6cdc9ae4fe
server/etcdserver/raft.go:
...
1. rename confChangeCh to raftAdvancedC
2. rename waitApply to confChanged
3. add comments and test assertion
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-06-26 22:42:44 -07:00
Benjamin Wang
ad3b6ee4c6
etcdserver: wait for raft is notified on confChange before responding to client
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-06-26 13:40:51 -07:00
Marek Siarkowicz
1967b8e5e6
Merge pull request #16086 from CaojiamingAlan/applier_test
...
etcdserver: add tests for apply_auth.go
2023-06-26 12:20:05 +02:00
caojiamingalan
11aa59c42d
etcdserver: add tests for apply_auth.go
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-06-23 10:58:30 -05:00
Benjamin Wang
c8247731a2
Merge pull request #16099 from chaochn47/enable_failpoint_in_integration_test
...
Enable failpoint in integration test
2023-06-23 13:15:08 +01:00
Chao Chen
6d79b86219
Enable failpoint by default in integration tests
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-06-21 23:13:46 -07:00
Geeta Gharpure
550aa152a7
Verify consistent index is latest at the time of snapshot
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-06-19 16:00:04 +00:00
Marek Siarkowicz
cb3730a30f
Merge pull request #16005 from tjungblu/putauthshort
...
Early exit auth check on lease puts
2023-06-16 08:33:57 +02:00
Thomas Jungblut
84a9af17cc
Add first unit test for authApplierV3
...
This contains a slight refactoring to expose enough information
to write meaningful tests for auth applier v3.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-06-15 15:57:44 +02:00
Geeta Gharpure
e9fa3d30d7
Enable test to verify membership recovery from backend
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-06-13 18:33:03 +00:00
Geeta Gharpure
2b81483103
Adding test for version update function used in 3.6
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
2023-06-13 17:38:04 +00: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
Thomas Jungblut
dfbe2038f3
Early exit auth check on lease puts
...
Mitigates #15993 by not checking each key individually for permission
when auth is entirely disabled or admin user is calling the method.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-06-06 10:23:46 +02:00
Benjamin Wang
3413f2e08d
Merge pull request #15908 from cuishuang/main
...
*: use strings.Builder instead of bytes.Buffer
2023-05-26 09:41:01 +08:00
Chao Chen
9e1e378e9e
update code comments
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-05-24 12:54:27 -07:00
cui fliter
0c919dc212
use the more efficient strings.Builder
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-05-19 10:44:58 +08: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
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
Hitoshi Mitake
a0cffb6a1f
server/etcdserver: swap order of return types
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
2023-05-08 22:53:04 +09: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
Hitoshi Mitake
975854f07f
etcdserver: protect lease timetilive with auth
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
Co-authored-by: Benjamin Wang <wachao@vmware.com>
2023-04-26 20:35:20 +09:00
Wei Fu
1ba577e499
server/etcdserver: togRPCError for maintenance API
...
It's to deflake TestAuthMemberRemove.
When the client has multiple endpoints, the client might send a request
with valid token to the follower member which hasn't received token
replicated log yet. The member will reject the request.
For instance, the maintenance.Status API will return "auth: invalid auth
token". But the client doesn't identify the error. The client won't retry to
refresh auth token. The maintenance.Status should togRPCError before return
so that the client can reflesh token. It's align with existing API.
Since the maintenance client always creates one connection to target
member, the member will have the token after refresh auth.
Maybe we can introduce a sync to wait for member is ready with token,
instead of refreshing.
Fixes : #15758
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-04-22 18:35:53 +08:00
Marcondes Viana
9d14ae43c2
fix review: remove if on error check
...
Signed-off-by: Marcondes Viana <marju10@gmail.com>
2023-04-18 10:43:13 -03:00