Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11575

Start different timestamp_abort iterations with different random states

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.2.0-rc0, 7.1.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None

      Summary

      timestamp_abort runs its workload in several iterations: It would run a workload in a child process, kill it later, recover, and then do it again. The trouble is, however, that each fork results in the child process starting with exactly the same random seed.

      Suggested approach

      We should re-initialize the two random states (one for data, one for extra) right either right before the fork or right after the fork, so that each iteration starts with a different state.

      Ideally we would do this using testutil_random_init by using its n argument to get different starting positions from the same 3-byte seed, but the problem is that this does not work when the seed is already set, and moreover, the periodicity of n is 4, which is woefully low for our purposes. We would thus need to find a different solution.

            Assignee:
            peter.macko@mongodb.com Peter Macko
            Reporter:
            peter.macko@mongodb.com Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: