Skip to content

Commit

Permalink
c/partition_manager: wrapped shutdown error log with vlog
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit d0ee2f8)
  • Loading branch information
mmaslankaprv authored and Michal Maslanka committed Feb 6, 2024
1 parent d965dc9 commit c415b9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/cluster/partition_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ void partition_manager::check_partitions_shutdown_state() {
const auto now = ss::lowres_clock::now();
for (auto& state : _partitions_shutting_down) {
if (state.last_update_timestamp < now - _partition_shutdown_timeout()) {
clusterlog.error(
vlog(
clusterlog.error,
"partition {} shutdown takes longer than expected, current "
"shutdown stage: {} time since last update: {} seconds",
state.partition->ntp(),
Expand Down

0 comments on commit c415b9b

Please sign in to comment.