Skip to content

[DNM] raftstore: change the split flow path#7503

Closed
gengliqi wants to merge 1 commit intotikv:masterfrom
gengliqi:change-split-flow
Closed

[DNM] raftstore: change the split flow path#7503
gengliqi wants to merge 1 commit intotikv:masterfrom
gengliqi:change-split-flow

Conversation

@gengliqi
Copy link
Member

@gengliqi gengliqi commented Apr 16, 2020

Signed-off-by: Liqi Geng gengliqiii@gmail.com

What problem does this PR solve?

Problem Summary:

The new region which is created by splitting may has already created before in some sophisticated cases.
So we must change the split flow path to check whether it should be created.
Add a new key region_temp_state to transition from one temporary state to the normal state if it can be created.

It's still in progress. (There are some details need to think twice and the tests have not been written yet. It needs many tests to make this PR reliable.)

What is changed and how it works?

Change the split path

What's Changed:

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test

Side effects

The time of creating a new peer by splitting will be longer than before but I think it's fine and I will test it.

Release note

Signed-off-by: Liqi Geng <gengliqiii@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sig/raft Component: Raft, RaftStore, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants