Skip to content

Commit 55cef11

Browse files
authored
chore: add some log (#16863)
* chore: add some log * remove flood log * add log
1 parent 93eb1e3 commit 55cef11

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/query/storages/common/cache/src/read/loader.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use databend_common_exception::Result;
1616

17+
#[derive(Debug)]
1718
pub struct LoadParams {
1819
pub location: String,
1920
pub len_hint: Option<u64>,

src/query/storages/fuse/src/io/snapshots.rs

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ impl SnapshotsIO {
8585
ver,
8686
put_cache: true,
8787
};
88+
info!("read_snapshot will read: {:?}", load_params);
8889
let snapshot = reader.read(&load_params).await?;
8990
Ok((snapshot, ver))
9091
}

src/query/storages/fuse/src/table_functions/fuse_time_travel_size.rs

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use std::sync::Arc;
1616

1717
use databend_common_catalog::plan::DataSourcePlan;
18+
use databend_common_catalog::table::Table;
1819
use databend_common_catalog::table_args::TableArgs;
1920
use databend_common_catalog::table_context::TableContext;
2021
use databend_common_exception::ErrorCode;
@@ -173,6 +174,10 @@ async fn get_time_travel_size(storage_prefix: &str, op: &Operator) -> Result<u64
173174
}
174175

175176
async fn calc_tbl_size(tbl: &FuseTable) -> Result<(u64, u64)> {
177+
info!(
178+
"fuse_time_travel_size start calc_tbl_size:{}",
179+
tbl.get_table_info().desc
180+
);
176181
let operator = tbl.get_operator();
177182
let storage_prefix = tbl.get_storage_prefix();
178183
let start = std::time::Instant::now();
@@ -182,6 +187,7 @@ async fn calc_tbl_size(tbl: &FuseTable) -> Result<(u64, u64)> {
182187
let latest_snapshot_size = match snapshot_location {
183188
Some(snapshot_location) => {
184189
let start = std::time::Instant::now();
190+
info!("fuse_time_travel_size will read: {}", snapshot_location);
185191
let (snapshot, _) = SnapshotsIO::read_snapshot(snapshot_location, operator).await?;
186192
info!("read_snapshot cost: {:?}", start.elapsed());
187193
snapshot.summary.compressed_byte_size + snapshot.summary.index_size

0 commit comments

Comments
 (0)