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.
This commit is contained in:
Tomasz Grabiec
2025-02-03 10:33:28 +01:00
parent 58460a8863
commit 1854ea2165

View File

@@ -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) {