Commit 67598bbd authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5671 increase default alarm time for stress tests


git-svn-id: file:///svn/toku/tokudb@50068 c7de825b-a66e-492c-adef-691d508d4ae1
parent 08eb5d86
...@@ -1534,8 +1534,8 @@ static int run_workers( ...@@ -1534,8 +1534,8 @@ static int run_workers(
r = toku_pthread_join(time_tid, &ret); assert_zero(r); r = toku_pthread_join(time_tid, &ret); assert_zero(r);
if (verbose) printf("%lu joined\n", (unsigned long) time_tid); if (verbose) printf("%lu joined\n", (unsigned long) time_tid);
// Set an alarm that will kill us if it takes too long to join all the // Set an alarm that will kill us if it takes too long to join all the
// threads (i.e. there is some runaway thread). // threads (i.e. there is some runaway thread). Give ten minutes to start.
unsigned int remaining = alarm((num_seconds / 10 < 30) ? 30 : num_seconds / 10); unsigned int remaining = alarm((num_seconds / 10 < 600) ? 600 : num_seconds / 10);
assert_zero(remaining); assert_zero(remaining);
for (int i = 0; i < num_threads; ++i) { for (int i = 0; i < num_threads; ++i) {
r = toku_pthread_join(tids[i], &ret); assert_zero(r); r = toku_pthread_join(tids[i], &ret); assert_zero(r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment