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

feat(split): parent group update partition count #654

Merged

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Oct 29, 2020

Simple partition split process

  1. meta receives client partition split request, and change partition count split: meta start partition split #286
  2. replica notices partition count changed during on_config_sync feat(split): add splitting_replicas while on_config_sync #653
  3. parent partition create child partition split: parent replica create child replica #291
  4. parent prepare states for child to learn feat(split): parent replica prepare states #299
  5. child partition async learn states from parent feat(split): child replica learn parent prepare list and checkpoint #309 feat(split): child replica apply private logs, in-memory mutations and catch up parent #319
  6. child notify parent catch up feat(split): child notify parent catch up #390
  7. update child group partition count feat(split): add update_child_group_partition_count #645
  8. register child partition feat(split): register child partition #391
  9. update parent group partition count

More partition split discussion in issue #69 and partition split design doc
This pr solves the part of ninth step of partition split, which is bold in process description.

What this pr solve

When primary parent registers child succeed, it will update its own partition_count, then broadcast this to secondary through group_check. Besides, this pull request also adds related unit test.

neverchanje
neverchanje previously approved these changes Nov 2, 2020
levy5307
levy5307 previously approved these changes Nov 2, 2020
acelyc111
acelyc111 previously approved these changes Nov 2, 2020
@hycdong hycdong dismissed stale reviews from acelyc111, levy5307, and neverchanje via dd81f3c November 2, 2020 07:44
@neverchanje neverchanje merged commit bf94cbd into XiaoMi:master Nov 2, 2020
@hycdong hycdong deleted the replica_parent_update_partition_count branch November 2, 2020 08:49
hycdong added a commit to hycdong/rdsn that referenced this pull request Nov 26, 2020
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.

4 participants