Skip to content

Commit

Permalink
Merge pull request #24476 from bashtanov/avoid-oversized-allocation-w…
Browse files Browse the repository at this point in the history
…hen-logging

c/partition_recovery_manager: avoid oversized allocations when logging
  • Loading branch information
bashtanov authored Dec 9, 2024
2 parents 8d90667 + 28ec1df commit a7b8b78
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/v/cluster/partition_recovery_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,6 @@ ss::future<log_recovery_result> partition_downloader::download_log() {
_ntpc.get_revision(),
retention);
auto mat = co_await find_recovery_material();
if (cst_log.is_enabled(ss::log_level::debug)) {
std::stringstream ostr;
mat.partition_manifest.serialize_json(ostr);
vlog(
_ctxlog.debug,
"Partition manifest used for recovery: {}",
ostr.str());
}
if (mat.partition_manifest.size() == 0) {
// If the downloaded manifest doesn't have any segments
log_recovery_result result{
Expand Down

0 comments on commit a7b8b78

Please sign in to comment.