From 1854ea216578b3aedf02ecd9df0602ba7b074a4f Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Mon, 3 Feb 2025 10:33:28 +0100 Subject: [PATCH] test: tablets: Drop keyspace after do_test_load_balancing_merge_colocation() scenario This scenario is invoked in a loop in the test_load_balancing_merge_colocation_with_random_load test case, which will cause accumulation of tablet maps making each reload slower in subsequent iterations. It wasn't a problem before because we overwritten tablet_metadata in each iteration to contain only tablets for the current table, but now we need to keep it consistent with the schema and don't do that. --- test/boost/tablets_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/boost/tablets_test.cc b/test/boost/tablets_test.cc index 0e809b0611..e70af0ee92 100644 --- a/test/boost/tablets_test.cc +++ b/test/boost/tablets_test.cc @@ -2670,6 +2670,8 @@ static void do_test_load_balancing_merge_colocation(cql_test_env& e, const int n check_tablet_invariants(stm.get()->tablets()); BOOST_REQUIRE_LT(tablet_count(), old_tablet_count); } + + e.execute_cql(fmt::format("drop keyspace {}", ks_name)).get(); } SEASTAR_THREAD_TEST_CASE(test_load_balancing_merge_colocation_with_random_load) {