Skip to content

Commit dc001b7

Browse files
committed
wip
1 parent 596cdbd commit dc001b7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

scripts/ci/deploy/config/databend-query-node-1.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ join_spilling_memory_ratio = 60
8282
[log]
8383

8484
[log.file]
85-
level = "DEBUG"
85+
level = "INFO"
8686
format = "text"
8787
dir = "./.databend/logs_1"
8888
limit = 12 # 12 files, 1 file per hour

src/query/storages/fuse/src/operations/common/processors/sink_commit.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,24 @@ where F: SnapshotGenerator + Send + Sync + 'static
244244

245245
async fn exec_auto_purge(&self, tbl: &FuseTable) -> Result<()> {
246246
let keep_last_snapshot = true;
247+
248+
if tbl.is_transient() {
249+
let snapshot_files = tbl.list_snapshot_files().await?;
250+
if let Err(e) = tbl
251+
.do_purge(&self.ctx, snapshot_files, None, keep_last_snapshot, false)
252+
.await
253+
{
254+
// Errors of GC, if any, are ignored, since GC task can be picked up
255+
warn!(
256+
"GC of table not success (this is not a permanent error). the error : {}",
257+
e
258+
);
259+
} else {
260+
info!("GC of table done");
261+
}
262+
return Ok(());
263+
}
264+
247265
let is_dry_run = false;
248266
// Using setting or table option, no customized navigation point
249267
let navigation_point = None;

0 commit comments

Comments
 (0)