Skip to content

Commit

Permalink
fix(storage): reset partition_vnode_count after merge (#20426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored Feb 8, 2025
1 parent 37d96fd commit 1578865
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,20 @@ impl HummockManager {
);
}

// clear `partition_vnode_count` for the hybrid group
{
if let Err(err) = compaction_groups_txn.update_compaction_config(
&[left_group_id],
&[MutableConfig::SplitWeightByVnode(0)], // default
) {
tracing::error!(
error = %err.as_report(),
"failed to update compaction config for group-{}",
left_group_id
);
}
}

new_version_delta.pre_apply();

// remove right_group_id
Expand Down

0 comments on commit 1578865

Please sign in to comment.