Skip to content

Commit

Permalink
Merge pull request redpanda-data#14797 from andijcr/fix/upload_archiv…
Browse files Browse the repository at this point in the history
…ing_service_error_log

archival/upload_housekeeping_service: log error for unknown exception
  • Loading branch information
andijcr authored Nov 10, 2023
2 parents a32b9fa + 5511720 commit 3a7d07e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/v/archival/upload_housekeeping_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,13 @@ ss::future<> housekeeping_workflow::run_jobs_bg() {
_running.splice(_running.begin(), _pending, _pending.begin());
{
ss::gate::holder hh(_exec_gate);
auto job_name = _running.front().name();
try {
auto r = exec_timer.time();
vlog(
archival_log.debug,
"Running job {} with quota {}",
_running.front().name(),
job_name,
quota);

auto& job = _running.front();
Expand All @@ -404,8 +405,9 @@ ss::future<> housekeeping_workflow::run_jobs_bg() {
// Shutting down
} catch (...) {
vlog(
archival_log.warn,
"upload housekeeping job error: {}",
archival_log.error,
"upload housekeeping job {} error: {}",
job_name,
std::current_exception());
jobs_failed++;
maybe_update_probe(
Expand Down

0 comments on commit 3a7d07e

Please sign in to comment.