cmu-db / peloton

The Self-Driving Database Management System
http://pelotondb.io
Apache License 2.0
2.03k stars 624 forks source link

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

Open mbutrovich opened 6 years ago

mbutrovich commented 6 years ago

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.