service: storage_proxy: do not report abort requests in handle_write
We don't want to report aborts in storage_proxy::handle_write, because it can be only triggered by shutdowns and timeouts. Before this change, such reports flooded logs when a drained node still received the write RPCs.
This commit is contained in:
@@ -482,8 +482,10 @@ private:
|
||||
errors.count++;
|
||||
errors.local = replica::try_encode_replica_exception(eptr);
|
||||
seastar::log_level l = seastar::log_level::warn;
|
||||
if (is_timeout_exception(eptr) || std::holds_alternative<replica::rate_limit_exception>(errors.local.reason)) {
|
||||
// ignore timeouts and rate limit exceptions so that logs are not flooded.
|
||||
if (is_timeout_exception(eptr)
|
||||
|| std::holds_alternative<replica::rate_limit_exception>(errors.local.reason)
|
||||
|| std::holds_alternative<abort_requested_exception>(errors.local.reason)) {
|
||||
// ignore timeouts, abort requests and rate limit exceptions so that logs are not flooded.
|
||||
// database's total_writes_timedout or total_writes_rate_limited counter was incremented.
|
||||
l = seastar::log_level::debug;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user