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: support re-acquire shard lock in a fast way #1251

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented Oct 9, 2023

Rationale

Currently, a restarted ceresdb-server must wait for the previous lock lease to expire before acquiring the new shard locks, leading to long failover time.

Detailed Changes

Support fast reacquire the shard lock by reusing the previous lock lease.

Test Plan

Manually test this feature.

@ShiKaiWi ShiKaiWi force-pushed the feat-fast-acquire-shard-lock branch from f81162b to 4b956ba Compare October 10, 2023 07:28
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 4c66a3f into apache:main Oct 10, 2023
@ShiKaiWi ShiKaiWi deleted the feat-fast-acquire-shard-lock branch October 10, 2023 09:21
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.

3 participants