Skip to content

Commit

Permalink
chore: add more log (databendlabs#17110)
Browse files Browse the repository at this point in the history
chore:add more log
  • Loading branch information
SkyFan2002 authored Dec 25, 2024
1 parent b8ee29b commit 0e05b43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,23 +319,23 @@ impl VacuumDropTablesInterpreter {
.iter()
.map(|t| t.get_id())
.collect::<HashSet<_>>();
info!("table_ids_in_meta: {:?}", table_ids_in_meta);
for path in paths {
let Some(table_id) = path.split('/').nth(1) else {
info!("can not parse table id from path: {}", path);
continue;
};
info!("split table id:{} from path: {}", table_id, path);
let Some(table_id) = table_id.parse::<u64>().ok() else {
info!("can not parse table id from path: {}", path);
continue;
};
info!("parse table id:{} from path: {}", table_id, path);
if !table_ids_in_meta.contains(&table_id) {
orphan_paths.push(path);
}
}
info!(
"orphan_paths summary: {:?}",
orphan_paths.iter().take(100).collect::<Vec<_>>()
);
info!("orphan_paths summary: {:?}", orphan_paths);
op.remove(orphan_paths).await?;
}

Expand Down

0 comments on commit 0e05b43

Please sign in to comment.