readers/multishard: shard_reader::close() silence read-ahead timeouts

Timouts are benign, especially on a read-ahead that turned out to be not
needed at all. They just introduce noise in the logs, so silence them.

Fixes: #12435

Closes #12441
This commit is contained in:
Botond Dénes
2023-01-04 05:18:29 -05:00
committed by Avi Kivity
parent 4268b1bbc2
commit 1d273a98b9

View File

@@ -763,7 +763,10 @@ future<> shard_reader_v2::close() noexcept {
try {
co_await *std::exchange(_read_ahead, std::nullopt);
} catch (...) {
mrlog.warn("shard_reader::close(): read_ahead on shard {} failed: {}", _shard, std::current_exception());
auto ex = std::current_exception();
if (!is_timeout_exception(ex)) {
mrlog.warn("shard_reader::close(): read_ahead on shard {} failed: {}", _shard, ex);
}
}
}