tests: tablets: Add test for load balancing with active migrations
This commit is contained in:
@@ -190,6 +190,10 @@ future<> tablet_map::for_each_tablet(seastar::noncopyable_function<void(tablet_i
|
||||
}
|
||||
}
|
||||
|
||||
void tablet_map::clear_transitions() {
|
||||
_transitions.clear();
|
||||
}
|
||||
|
||||
std::optional<shard_id> tablet_map::get_shard(tablet_id tid, host_id host) const {
|
||||
auto&& info = get_tablet_info(tid);
|
||||
|
||||
|
||||
@@ -293,6 +293,7 @@ public:
|
||||
public:
|
||||
void set_tablet(tablet_id, tablet_info);
|
||||
void set_tablet_transition_info(tablet_id, tablet_transition_info);
|
||||
void clear_transitions();
|
||||
|
||||
// Destroys gently.
|
||||
// The tablet map is not usable after this call and should be destroyed.
|
||||
@@ -326,6 +327,7 @@ private:
|
||||
public:
|
||||
const tablet_map& get_tablet_map(table_id id) const;
|
||||
const table_to_tablet_map& all_tables() const { return _tablets; }
|
||||
table_to_tablet_map& all_tables() { return _tablets; }
|
||||
size_t external_memory_usage() const;
|
||||
public:
|
||||
void set_tablet_map(table_id, tablet_map);
|
||||
|
||||
Reference in New Issue
Block a user