-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create unique ids even for random conflicts
With this commit we ensure that generated ids are always unique, even when generating random conflicts for bulk requests. The general strategy to simulate conflicts is as follows: 1. Generate a list of ids upfront. 2. Iterate through this list and pick a duplicate in 25% of all cases. In order to avoid accidentally creating more conflicts than expected, the list of ids generated in step one, needs to contain unique ids. However, we create ids at random without considering which ids have already been generated. This is now changed by first generating all ids and then shuffling them. Relates #476
- Loading branch information
1 parent
581b7b1
commit 8ed15c4
Showing
2 changed files
with
14 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