Skip to content
This repository was archived by the owner on Oct 22, 2026. It is now read-only.

Fix not leader error due to region not invalidated (#2135) - #2138

Merged
birdstorm merged 2 commits into
pingcap:release-2.4from
ti-srebot:release-2.4-5f9d46abc853
Sep 14, 2021
Merged

birdstorm merged 2 commits into
pingcap:release-2.4from
ti-srebot:release-2.4-5f9d46abc853

Conversation

@ti-srebot

@ti-srebot ti-srebot commented Sep 14, 2021 •

Copy link
Copy Markdown
Contributor

cherry-pick #2135 to release-2.4
You can switch your code base to this Pull Request by using git-extras:

# In tispark repo:
git pr https://github.com/pingcap/tispark/pull/2138

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/tispark.git pr/2138:release-2.4-5f9d46abc853

In previous fixes, #1987 #2106, the region cache was not invalidated in the NotLeader situation.

Signed-off-by: birdstorm <samuelwyf@hotmail.com>

@birdstorm birdstorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@birdstorm

Copy link
Copy Markdown
Contributor

/run-integration-tests pd=v5.1.0 tidb=v5.1.0 tikv=v5.1.0

@birdstorm
birdstorm merged commit aa07a97 into pingcap:release-2.4 Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CHERRY-PICK cherry pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants