Skip to content

Commit

Permalink
fix: ignore dependent table_fragment not exist (#14308)
Browse files Browse the repository at this point in the history
Co-authored-by: August <[email protected]>
  • Loading branch information
fuyufjh and yezizp2012 authored Jan 4, 2024
1 parent 78c8e2a commit 0a95b8c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/meta/src/manager/catalog/fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,14 +616,16 @@ impl FragmentManager {
if table_ids.contains(&dependent_table_id) {
continue;
}
let mut dependent_table = table_fragments
.get_mut(dependent_table_id)
.with_context(|| {
format!(
let mut dependent_table =
if let Some(dependent_table) = table_fragments.get_mut(dependent_table_id) {
dependent_table
} else {
tracing::error!(
"dependent table_fragment not exist: id={}",
dependent_table_id
)
})?;
);
continue;
};

dependent_table
.fragments
Expand Down

0 comments on commit 0a95b8c

Please sign in to comment.