From 6b2810b56d68dd490d1a9f51117ce67469549182 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Wed, 2 Aug 2023 16:49:51 +0300 Subject: [PATCH] test/store_test: adjust spillover cases to reflect updated WAL usage. Signed-off-by: Igor Fedotov --- src/test/objectstore/store_test.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 262d12d39a97..f145dd64a54d 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -9733,6 +9733,8 @@ TEST_P(StoreTestSpecificAUSize, SpilloverFixedTest) { if (string(GetParam()) != "bluestore") return; + SetVal(g_conf(), "bluestore_block_wal_create", "true"); + SetVal(g_conf(), "bluestore_block_wal_size", stringify(1400ull*1024*1024).c_str()); SetVal(g_conf(), "bluestore_block_db_create", "true"); SetVal(g_conf(), "bluestore_block_db_size", "3221225472"); SetVal(g_conf(), "bluestore_volume_selection_policy", "use_some_extra"); @@ -9757,12 +9759,12 @@ TEST_P(StoreTestSpecificAUSize, SpilloverFixed2Test) { if (string(GetParam()) != "bluestore") return; + SetVal(g_conf(), "bluestore_block_wal_create", "true"); + SetVal(g_conf(), "bluestore_block_wal_size", stringify(1200ull*1024*1024).c_str()); SetVal(g_conf(), "bluestore_block_db_create", "true"); - SetVal(g_conf(), "bluestore_block_db_size", "3221225472"); + SetVal(g_conf(), "bluestore_block_db_size", stringify(3200ull*1024*1024).c_str()); SetVal(g_conf(), "bluestore_volume_selection_policy", "use_some_extra"); - //default 2.0 factor results in too high threshold, using less value - // that results in less but still present spillover. - SetVal(g_conf(), "bluestore_volume_selection_reserved_factor", "0.5"); + SetVal(g_conf(), "bluestore_volume_selection_reserved", stringify(2900ull*1024*1024).c_str()); g_conf().apply_changes(nullptr); -- 2.47.3