forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvflowcontrol: introduce two new knobs for testing
This commit introduces two testing knobs: ``` // OverrideBypassAdmitWaitForEval is used to override the behavior of the // WaitForEval. When set to true, WaitForEval will return immediately and // pretend that the request was admitted. Otherwise, when set to false, or // unset, WaitForEval will behave normally. OverrideBypassAdmitWaitForEval func() bool // OverrideAlwaysRefreshSendStreamStats is used to override the behavior of // the send stream stats refresh. When set to true, the send stream stats // will always be refreshed on a HandleRaftEventRaftMuLocked call. Otherwise, // when set to false, the default behavior will be used. OverrideAlwaysRefreshSendStreamStats bool ``` Also, thread send queue precise size adjustments via a method which also asserts that the size is consistent between the count and bytes. Part of: cockroachdb#132614 Release note: None
- Loading branch information
Showing
2 changed files
with
62 additions
and
15 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