From: Igor Fedotov Date: Wed, 2 Aug 2023 13:49:51 +0000 (+0300) Subject: test/store_test: adjust spillover cases to reflect updated WAL usage. X-Git-Tag: v17.2.7~98^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2c97cf43c01e01a3ea3c400630063db08c8312aa;p=ceph.git test/store_test: adjust spillover cases to reflect updated WAL usage. Signed-off-by: Igor Fedotov --- 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);