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

store: change box err to stale epoch error #2595

Merged
merged 1 commit into from
Dec 19, 2017

Conversation

overvenus
Copy link
Member

Fix #2593 and #2487

Tests will retry when it meets stale epoch error.

peer.tag,
region.get_region_epoch(),
epoch
return Err(Error::StaleEpoch(
Copy link
Contributor

Choose a reason for hiding this comment

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

why can return StaleEpoch fix the problem?

Copy link
Member Author

@overvenus overvenus Dec 19, 2017

Choose a reason for hiding this comment

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

https://github.com/pingcap/tikv/blob/d780a5f9ba18cdb2a7063172079ff9bfe27a06d4/tests/raftstore/cluster.rs#L762-L769

The line 768 panics if the respone has a box error, however it will retry, if the error is the stale epoch.

@siddontang
Copy link
Contributor

LGTM

PTAL @BusyJay

@overvenus
Copy link
Member Author

/run-unit-test

@ngaut
Copy link
Member

ngaut commented Dec 19, 2017

Nice catch.

Copy link
Member

@BusyJay BusyJay left a comment

Choose a reason for hiding this comment

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

LGTM

@overvenus
Copy link
Member Author

/run-all-tests

@overvenus overvenus merged commit 3b63efd into tikv:master Dec 19, 2017
@overvenus overvenus deleted the fix-split-tests branch December 19, 2017 14:34
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
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.

4 participants