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

feat: add shard status when heartbeat to meta #1082

Merged
merged 5 commits into from
Jul 19, 2023

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Jul 18, 2023

Rationale

After #1080, ceresdb will not heartbeat to meta until all table open finished, that is to say that all tables inside a shard will not be used for write/read, which is unreasonable.

Detailed Changes

  • Introduce PartialOpen status sent to meta, and it will send this status when part of tables are opened, and meta will route table in this status.
  • Flush table when open successfully to reduce WAL size.

Test Plan

Manually

@jiacai2050 jiacai2050 marked this pull request as ready for review July 19, 2023 08:50
meta_client/src/types.rs Show resolved Hide resolved
meta_client/src/types.rs Show resolved Hide resolved
catalog/src/table_operator.rs Outdated Show resolved Hide resolved
@Rachelint
Copy link
Contributor

LGTM

@jiacai2050 jiacai2050 merged commit 37d2dda into apache:main Jul 19, 2023
6 checks passed
@jiacai2050 jiacai2050 deleted the feat-heartbeat-status branch July 19, 2023 11:35
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

2 participants