-
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: fix testing knob cast type
Previously the wrong object was being casted which caused the type assertion to fail for NodeLivenessKnobs. Thus the testing knob was never attached in some test cases. This patch ensures the correct object is casted. This uncovered a bug where a stale range descriptor was returned in setup fns, so this commit also patches that by having `checkReplicaCounts` take a pointer to a range decriptor. Lastly, due to these fixes we found that a race between the `replicateQueue`'s snapshots and `raftSnapshotQueue's` causes the `TestReplicateQueueDeadNonVoters` test to timeout. A new issue #76996 was created to harden this test, but the test will be skipped for the time being. Release note: None
- Loading branch information
Showing
2 changed files
with
19 additions
and
11 deletions.
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
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