-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workload/schemachange: make RSW more deterministic by using setseed
The recently added setseed builtin lets us make the ORDER BY random() clauses used in this workload deterministic. Each worker goroutine of the RSW now runs a determistic sequence of operations given the same COCKROACH_RANDOM_SEED. However, since the workload is concurrent, the overall RSW is not deterministic, since the interleaving of goroutine execution is random. This also makes the "deck" used to decide which operation to execute be per-worker rather than global. Release note: None
- Loading branch information
Showing
2 changed files
with
60 additions
and
13 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