Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove shard from cluster topology after shard closed #908

Merged
merged 6 commits into from
May 23, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented May 22, 2023

Related Issues

Closes #

Detailed Changes

  • Remove the shard from the cluster topology only after it is closed successfully.
  • Freeze the shard to avoid any updates on it before close the shard, and do shard close with the tables of the frozen shard.
  • Add some logs for open/close shards.

Test Plan

Test with CeresMeta, and trigger closing shard.

cluster/src/shard_tables_cache.rs Outdated Show resolved Hide resolved
cluster/src/shard_tables_cache.rs Show resolved Hide resolved
cluster/src/shard_tables_cache.rs Outdated Show resolved Hide resolved
cluster/src/shard_tables_cache.rs Outdated Show resolved Hide resolved
catalog/src/table_operator.rs Outdated Show resolved Hide resolved
server/src/grpc/meta_event_service/mod.rs Show resolved Hide resolved
Copy link
Contributor

@ZuLiangWang ZuLiangWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShiKaiWi ShiKaiWi merged commit f0216af into apache:main May 23, 2023
5 checks passed
@ShiKaiWi ShiKaiWi deleted the fix-close-shard-order branch May 23, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants