From 2c97cf43c01e01a3ea3c400630063db08c8312aa 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 e8df6d8d2fa93..54dc29c7db8d6 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -10429,6 +10429,8 @@ TEST_P(StoreTestSpecificAUSize, SpilloverFixedTest) { 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"); @@ -10457,12 +10459,12 @@ TEST_P(StoreTestSpecificAUSize, SpilloverFixed2Test) { 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