Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(split): meta failover during partition split #764

Merged
merged 5 commits into from
Mar 17, 2021

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Feb 22, 2021

When meta server restart, it will sync app and its partition info from zk (in function sync_apps_from_remote_storage), for splitting partitions, its child partition has not been registered, could not be found on zk(got ERR_OBJECT_NOT_FOUND), this pull request is to solve this half-split case. If the not-found partition is child partition(partition_id >= app->partition_count / 2), init splitting status and update child partition in memory. This pull request also adds the related unit test.

@hycdong hycdong marked this pull request as ready for review March 10, 2021 06:42
@levy5307 levy5307 merged commit 2ebdfce into XiaoMi:master Mar 17, 2021
@hycdong hycdong deleted the meta_failover_1 branch March 17, 2021 02:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants