Skip to content

workload: fix non-determinism in TPC-H data generation#94702

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rytaft:fix-non-determinism
Jan 4, 2023
Merged

workload: fix non-determinism in TPC-H data generation#94702
craig[bot] merged 1 commit intocockroachdb:masterfrom
rytaft:fix-non-determinism

Conversation

@rytaft
Copy link
Copy Markdown
Collaborator

@rytaft rytaft commented Jan 4, 2023

This commit fixes the non-determinism in the TPC-H data generation by using a local slice for the random permutation of indexes into randPartNames. It also fixes the permutation algorithm to use a modified Fisher–Yates shuffle.

Fixes #93958

Release note: None

This commit fixes the non-determinism in the TPC-H data generation by
using a local slice for the random permutation of indexes into randPartNames.
It also fixes the permutation algorithm to use a modified Fisher–Yates
shuffle.

Fixes cockroachdb#93958

Release note: None
@rytaft rytaft requested review from a team and srosenberg January 4, 2023 16:51
@rytaft rytaft requested a review from a team as a code owner January 4, 2023 16:51
@rytaft rytaft requested review from herkolategan and removed request for a team January 4, 2023 16:51
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator Author

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTR!

CI failure is an unrelated flake #94716

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @herkolategan)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 4, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ccl/workloadccl/allccl: TestDeterministicInitialData failed

3 participants