Skip to content

Commit

Permalink
Merge pull request #5765 from jcsp/issue-5764-peristed-stm-shutdown-e…
Browse files Browse the repository at this point in the history
…rrors

cluster: do not log errors on shutdown from persisted_stm
  • Loading branch information
jcsp committed Aug 2, 2022
2 parents a2ea18e + ecb360e commit eb368f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/v/cluster/persisted_stm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ ss::future<bool> persisted_stm::wait_no_throw(
auto deadline = model::timeout_clock::now() + timeout;
return wait(offset, deadline)
.then([] { return true; })
.handle_exception_type([](const raft::offset_monitor::wait_aborted&) {
vlog(clusterlog.trace, "aborted while waiting (shutting down)");
return false;
})
.handle_exception([offset, ntp = _c->ntp()](std::exception_ptr e) {
vlog(
clusterlog.error,
Expand Down

0 comments on commit eb368f9

Please sign in to comment.