From b4e4bbd64a8fd3852c55c3e1398aa2d9eec5b536 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Fri, 30 Dec 2022 12:24:09 -0300 Subject: [PATCH] database_test: Reduce x_log2_compaction_group values to avoid timeout database_test in timing out because it's having to run the tests calling do_with_cql_env_and_compaction_groups 3x, one for each compaction group setting. reduce it to 2 settings instead of 3 if running in debug mode. Refs #12396. Signed-off-by: Raphael S. Carvalho Closes #12421 --- test/boost/database_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/boost/database_test.cc b/test/boost/database_test.cc index f588a76286..aefa7eaaad 100644 --- a/test/boost/database_test.cc +++ b/test/boost/database_test.cc @@ -69,7 +69,11 @@ static future<> apply_mutation(sharded& sharded_db, table_id } future<> do_with_cql_env_and_compaction_groups(std::function func, cql_test_config cfg = {}, thread_attributes thread_attr = {}) { +#ifdef SEASTAR_DEBUG + std::vector x_log2_compaction_group_values = { 0 /* 1 CG */, 1 /* 2 CGs */ }; +#else std::vector x_log2_compaction_group_values = { 0 /* 1 CG */, 1 /* 2 CGs */, 8 /* 256 CGs */ }; +#endif for (auto x_log2_compaction_groups : x_log2_compaction_group_values) { // clean the dir before running if (cfg.db_config->data_file_directories.is_set()) {