From 2c4f804b8473221e5960d29d373826babe485d65 Mon Sep 17 00:00:00 2001 From: Leif Walsh Date: Wed, 17 Apr 2013 00:01:22 -0400 Subject: [PATCH] closes #5665 make recover-flt1 work on a bigger tree so we get inbox flushing git-svn-id: file:///svn/toku/tokudb@50981 c7de825b-a66e-492c-adef-691d508d4ae1 --- src/tests/CMakeLists.txt | 1 - src/tests/recover-test_crash_in_flusher_thread.h | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 346b4ef3fac..c6613cf2558 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -592,7 +592,6 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) else () message(WARNING "TODO(leif): re-enable keyrange tests, see #5666") declare_custom_tests(keyrange-merge.tdb) - list(REMOVE_ITEM abortrecover_tests recover-flt1.abortrecover) endif () add_test(ydb/keyrange-loader-get0.tdb keyrange.tdb --get 0 --loader 1 --envdir dir.keyrange-loader-get0.tdb) add_test(ydb/keyrange-loader-get1.tdb keyrange.tdb --get 1 --loader 1 --envdir dir.keyrange-loader-get1.tdb) diff --git a/src/tests/recover-test_crash_in_flusher_thread.h b/src/tests/recover-test_crash_in_flusher_thread.h index 2a1fd374d03..3af4e37b40a 100644 --- a/src/tests/recover-test_crash_in_flusher_thread.h +++ b/src/tests/recover-test_crash_in_flusher_thread.h @@ -76,7 +76,15 @@ run_recover_flt_test(int argc, char *const argv[]) { struct cli_args args = get_default_args(); // make test time arbitrarily high because we expect a crash args.num_seconds = 1000000000; - args.num_elements = 2000; + if (state_to_crash == 1) { + // Getting flt_state 1 (inbox flush) requires a larger tree with more messages floating in it + args.num_elements = 100000; + args.disperse_keys = true; + args.key_size = 8; + args.val_size = 192; + } else { + args.num_elements = 2000; + } // we want to induce a checkpoint args.env_args.checkpointing_period = 0; parse_stress_test_args(argc, argv, &args);