]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd: Disallow using testrecovery and parallel at the same time in ceph_test_rado...
authorJon <jonathan.bailey1@ibm.com>
Tue, 24 Jun 2025 14:09:13 +0000 (15:09 +0100)
committerJon Bailey <jonathan.bailey1@ibm.com>
Tue, 15 Jul 2025 08:20:49 +0000 (09:20 +0100)
Due to --testrecovery needing to take OSDs offline in some tests, it is not compatible with the --parallel option, so it is now configured to return an error to the user in this case.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/test/osd/ceph_test_rados_io_sequence/ceph_test_rados_io_sequence.cc

index bff169c041629203f3f911e1973d0885a298bb11..a7986eaf32afae33411a069364b72b6d34ae2df3 100644 (file)
@@ -1122,6 +1122,11 @@ ceph::io_sequence::tester::TestRunner::TestRunner(
   allow_pool_scrubbing = vm.contains("allow_pool_scrubbing");
   disable_pool_ec_optimizations = vm.contains("disable_pool_ec_optimizations");
 
+  if (testrecovery && (num_objects > 1)) {
+    throw std::invalid_argument("testrecovery option not allowed if parallel is"
+                                " specified, except when parallel=1 is used");
+  }
+
   if (!dryrun) {
     guard.emplace(boost::asio::make_work_guard(asio));
     thread = make_named_thread("io_thread", [&asio = asio] { asio.run(); });