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

*: allow index start from 0 #353

Merged
merged 3 commits into from
Mar 26, 2020
Merged

*: allow index start from 0 #353

merged 3 commits into from
Mar 26, 2020

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Mar 25, 2020

This PR removes the modifications of index during initialization, which will allow raft's log index goes from 0 again. This is important as many existing test cases rely on it, especially those related to flow control. Those cases pass on master in an accidental way, checking what are exact broken will be too much work. Besides upstream patches from etcd also rely on the same assumption, only forbid growing from 0 in raft-rs will make it hard to port patches.

Most of the changes are basically revert of index changes introduced from #196 and #214.

@BusyJay BusyJay added the bugfix label Mar 25, 2020
@BusyJay BusyJay requested review from hicqu and gengliqi March 25, 2020 11:27
@BusyJay BusyJay changed the title *: allow index starts from 0 *: allow index start from 0 Mar 25, 2020
gengliqi
gengliqi previously approved these changes Mar 25, 2020
@gengliqi
Copy link
Member

Seems some test cases failed.

Signed-off-by: Jay Lee <[email protected]>
Signed-off-by: Jay Lee <[email protected]>
@BusyJay BusyJay merged commit e2a1841 into tikv:master Mar 26, 2020
@BusyJay BusyJay deleted the fix-tests branch March 26, 2020 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants