Skip to content

Commit

Permalink
chore: log update_table_meta failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky committed May 15, 2024
1 parent 3f20335 commit 033529e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/common/storage/src/parquet_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ pub async fn read_metadata_async(
None => operator.stat(path).await?.content_length(),
Some(n) => n,
};

check_footer_size(file_size)?;

// read and cache up to DEFAULT_FOOTER_READ_SIZE bytes from the end and process the footer
Expand Down
9 changes: 6 additions & 3 deletions src/query/storages/fuse/src/operations/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,18 @@ impl FuseTable {
None,
)
.await;

if need_to_save_statistics {
let table_statistics_location: String = table_statistics_location.unwrap();
if res.is_ok() {
TableSnapshotStatistics::cache().put(
match &res {
Ok(_) => TableSnapshotStatistics::cache().put(
table_statistics_location,
Arc::new(table_statistics.unwrap()),
)
),
Err(e) => info!("update_table_meta failed. {}", e),
}
}

res
}

Expand Down

0 comments on commit 033529e

Please sign in to comment.