Skip to content

Commit

Permalink
partition_manifest: error log whole manifest file path
Browse files Browse the repository at this point in the history
when an error log happens, instead of _ntp log the whole cloud storage
object key, so it's easier to manually retrieve the file

(cherry picked from commit 141192f)
  • Loading branch information
andijcr authored and vbotbuildovich committed Nov 27, 2023
1 parent af939c3 commit f9a046a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/v/cloud_storage/partition_manifest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ void partition_manifest::set_archive_clean_offset(
"{} Requested to advance archive_clean_offset to {} which is greater "
"than the current archive_start_offset {}. The offset won't be "
"changed. Archive size won't be changed by {} bytes.",
_ntp,
get_manifest_path(),
start_rp_offset,
_archive_start_offset,
size_bytes);
Expand All @@ -673,7 +673,7 @@ void partition_manifest::set_archive_clean_offset(
"{} archive clean offset moved to {} but the archive size can't "
"be updated because current size {} is smaller than the update "
"{}. This needs to be reported and investigated.",
_ntp,
get_manifest_path(),
_archive_clean_offset,
_archive_size_bytes,
size_bytes);
Expand Down Expand Up @@ -789,7 +789,7 @@ bool partition_manifest::advance_start_offset(model::offset new_start_offset) {
cst_log.error,
"Previous start offset is not within segment in "
"manifest for {}: previous_start_offset={}",
_ntp,
get_manifest_path(),
previous_start_offset);
previous_head_segment = _segments.begin();
}
Expand Down Expand Up @@ -1061,7 +1061,7 @@ size_t partition_manifest::safe_segment_meta_to_add(
"[{}] New segment does not line up with last offset of empty "
"log: "
"last_offset: {}, new_segment: {}",
_ntp,
get_manifest_path(),
subst.last_offset,
m);
break;
Expand Down Expand Up @@ -1106,7 +1106,7 @@ size_t partition_manifest::safe_segment_meta_to_add(
cst_log.error,
"[{}] New segment does not line up with previous "
"segment: {}",
_ntp,
get_manifest_path(),
format_seg_meta_anomalies(anomalies));
break;
}
Expand All @@ -1132,7 +1132,7 @@ size_t partition_manifest::safe_segment_meta_to_add(
"[{}] New replacement segment does not line up with "
"previous "
"segment: {}",
_ntp,
get_manifest_path(),
format_seg_meta_anomalies(anomalies));
break;
}
Expand All @@ -1147,7 +1147,7 @@ size_t partition_manifest::safe_segment_meta_to_add(
"[{}] New replacement segment has the same size as "
"replaced "
"segment: new_segment: {}, replaced_segment: {}",
_ntp,
get_manifest_path(),
m,
*it);
break;
Expand Down Expand Up @@ -1177,7 +1177,7 @@ size_t partition_manifest::safe_segment_meta_to_add(
"committed "
"offset of "
"any previous segment: new_segment: {}",
_ntp,
get_manifest_path(),
m);
break;
}
Expand Down Expand Up @@ -1292,9 +1292,9 @@ void partition_manifest::spillover(const segment_meta& spillover_meta) {
if (expected_meta != spillover_meta) {
vlog(
cst_log.error,
"{} Expected spillover metadata {} doesn't match actual spillover "
"[{}] Expected spillover metadata {} doesn't match actual spillover "
"metadata {}",
_ntp,
get_manifest_path(),
expected_meta,
spillover_meta);
} else {
Expand Down

0 comments on commit f9a046a

Please sign in to comment.