-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: [dnm] add TestFlowControlSendQueueRangeMigrate test
Add a new RACv2 integration test, `TestFlowControlSendQueueRangeMigrate`. This test fails, but not by timing out (it will with the below args due to the timeout flag specified), instead s1 and s3 on the scratch range appear to ping pong messages back and forth like: ``` -- Test timed out at 2024-11-16 00:39:36 UTC -- I241116 00:39:37.221610 4048 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n3] 725 [raft] r69 Raft message 1->3 MsgApp Term:6 Log:6/25 Commit:27 I241116 00:39:37.222264 4068 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n1] 726 [raft] r69 Raft message 3->1 MsgAppResp Term:6 Log:0/25 Commit:25 I241116 00:39:38.221271 4048 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n3] 727 [raft] r69 Raft message 1->3 MsgApp Term:6 Log:6/25 Commit:27 I241116 00:39:38.221876 4068 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n1] 728 [raft] r69 Raft message 3->1 MsgAppResp Term:6 Log:0/25 Commit:25 I241116 00:39:38.971603 4048 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n3] 729 [raft] r69 Raft message 1->3 MsgApp Term:6 Log:6/25 Commit:27 I241116 00:39:38.972018 4068 kv/kvserver_test/client_raft_helpers_test.go:104 [T1,Vsystem,n1] 730 [raft] r69 Raft message 3->1 MsgAppResp Term:6 Log:0/25 Commit:25 ``` The timeout is on these lines, calling `kvserver.waitForApplication(..)` here: - https://github.com/kvoli/cockroach/blob/dd5456fea47451d5b47e10ca40991808d7e47780/pkg/kv/kvserver/replica_write.go#L289-L292 Run with the following for more logging: ```bash dev test pkg/kv/kvserver -v --vmodule='replica_raft=1,kvflowcontroller=2,replica_proposal_buf=1,raft_transport=2,kvflowdispatch=1,kvadmission=1,kvflowhandle=1,work_queue=1,replica_flow_control=1,tracker=1,client_raft_helpers_test=1,raft=1,admission=1,replica_flow_control=1,work_queue=1,replica_raft=1,replica_proposal_buf=1,raft_transport=2,kvadmission=1,work_queue=1,replica_flow_control=1,client_raft_helpers_test=1,range_controller=2,token_counter=2,token_tracker=2,processor=2,kvflowhandle=1' -f TestFlowControlSendQueueRangeMigrate --show-logs --timeout=60s ``` Epic: none Release note: None
- Loading branch information
Showing
2 changed files
with
203 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
pkg/kv/kvserver/testdata/flow_control_integration_v2/send_queue_range_migrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo | ||
---- |