]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/store_test: adjust spillover cases to reflect updated WAL usage. 51774/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 2 Aug 2023 13:49:51 +0000 (16:49 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Fri, 11 Aug 2023 21:18:19 +0000 (00:18 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/test/objectstore/store_test.cc

index e8df6d8d2fa937928f8f7004d487433abbfeaae8..54dc29c7db8d67d74bfd1ae8665fc33c4b9e4de9 100644 (file)
@@ -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);