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.
rac2: add kvflowsimulator equivalent simulation test
Add a new simulation test, `TestUsingSimulation`. This test mirrors `kvflowsimulator.TestUsingSimulation` and its existing datadriven tests cases. When comparing the output from each, no behavioral differences show up, only intentionally different metric names. Note that like the `kvflowsimulator.TestUsingSimulation`, the simulation test needs to be deterministic and therefore only uses a single goroutine, to avoid goroutine scheduling causing non-determinism. As such, helper methods have been added to facilitate waiting for available tokens directly on a stream's token counter and on a range in a non-blocking manner (`testingNonBlockingAdmit`). These added methods are simplified versions of `WaitForEval`, which always wait for all connected streams to have available tokens before admission. Resolves: cockroachdb#130186 Release note: None
- Loading branch information
Showing
14 changed files
with
2,615 additions
and
3 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
Oops, something went wrong.