madsim icon indicating copy to clipboard operation
madsim copied to clipboard

Docs: Add caveat about madsim reproducibility

Open kwannoel opened this issue 2 years ago • 3 comments

Initially observed here: https://github.com/risingwavelabs/risingwave/issues/7901

Across various build environments the behaviour of RNG in a system may change, if they use from_entropy for instance. Or even just compilation might produce different ordering of rng writes and reads.

It should behave the same only with the same build. For example: we can run the original binary, it should yield the same result with the same SEED. Alternatively: Ensure build environment is the same (compiler, os, commit).

Should add some caveat about this in docs + output on how to reproduce when madsim cluster crashes.

kwannoel avatar Mar 03 '23 08:03 kwannoel