peloton icon indicating copy to clipboard operation
peloton copied to clipboard

Tests sleep for 1 epoch duration expecting the global epoch to advance

Open mbutrovich opened this issue 6 years ago • 0 comments

We've found a number of tests (serializable_transaction_test, for example) that sleep a thread for exactly the duration of an epoch and expect the global epoch to have advanced. However, this window may be too short depending on how threads are scheduled on the host, and causes tests to randomly fail. These tests should either sleep a bit longer, or deterministically advance the global epoch.

mbutrovich avatar Jun 29 '18 20:06 mbutrovich