-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvserver: add TestCreateManyUnappliedProbes #104401
Conversation
Hold off on re-review, I want to first rebase on top of the replication admission control change. |
296a7d9
to
cb7b7b7
Compare
I had to basically re-do this PR as part of the rebase. I took the opportunity to rearrange the commits somewhat, and to bake in the renames we decided on earlier. Even though the structure follows very closely to the original work, please give it an honest review. (I self-reviewed already but one is usually blind to one's own slip-ups). |
|
||
// End of evaluation. Start of "proposing". | ||
|
||
// TODO: the "requires consensus" logic is not reusable, make it so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue? More generally, is this test going to be unskipped at some point in some other form? Do we need to avoid this test being dead code?
If this test is intended as a demo, link it in the reverse direction from the issue that it serves? So that it's not forgotten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #105177 and cross-referring from the comments to that issue and back.
Epic: none Release note: none
That way, we can then rename RaftCmdToPayload to EncodeCommand without creating confusion. EncodeRaftCommand is only used in unquiesce (and testing). Epic: none Release note: None
Epic: none Release note: None
Epic: none Release note: None
Epic: none Release note: None
Epic: none Release note: none
Epic: none Release note: none
This is the test used for cockroachdb#102953. Epic: none Release note: none
bors r=pavelkalinnikov |
Build succeeded: |
This is the test used for #102953.
This PR also makes modest progress on #75729, not by making log application
stand-alone, but by making it somewhat less convoluted to manufacture log
entries programmatically. It would be desirable to be able to test the
replication layer in CRDB in the same way that Raft allows via the
InteractionEnv1.
Epic: none
Release note: none
Footnotes
https://github.com/etcd-io/raft/blob/6bf4f7fe3122b064e0a0d76314298dca6f379fc7/interaction_test.go ↩