chore: logs

This commit is contained in:
evenyag
2024-11-08 01:01:27 +08:00
parent 9ad4200f55
commit 4f446b95d8

View File

@@ -194,6 +194,16 @@ pub(crate) fn scan_file_ranges(
.build_file_ranges(index, read_type, &mut reader_metrics)
.await?;
part_metrics.inc_num_file_ranges(ranges.len());
if read_type == "unordered_scan_files" {
common_telemetry::debug!(
"Thread: {:?}, Scan file ranges build ranges end, region_id: {}, partition: {}, index: {:?}, ranges: {}",
std::thread::current().id(),
stream_ctx.input.mapper.metadata().region_id,
partition,
index,
ranges.len(),
);
}
for range in ranges {
let build_reader_start = Instant::now();
let reader = range.reader(None).await?;