Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/v/cluster/partition_balancer_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ void partition_balancer_backend::tick() {
= ssx::spawn_with_gate_then(
_gate,
[this] {
if (_tick_in_progress) {
vlog(
clusterlog.debug,
"skipping tick, tick already in progress");
return ss::now();
}

_tick_in_progress = ss::abort_source{};
return do_tick().finally([this] {
_tick_in_progress = {};
maybe_rearm_timer(
Expand Down Expand Up @@ -344,8 +352,6 @@ ss::future<> partition_balancer_backend::do_tick() {
co_return;
}

_tick_in_progress = ss::abort_source{};

const bool force_refresh_this_tick
= _cur_term->_force_health_report_refresh;
auto health_report = co_await _health_monitor.get_cluster_health(
Expand Down