-
Notifications
You must be signed in to change notification settings - Fork 249
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
provide invalidate region cache api #2810
provide invalidate region cache api #2810
Conversation
Welcome @lizhenhuan! It looks like this is your first PR to pingcap/tispark 🎉 |
please sign the license to make action happy |
/run-all-tests tidb=release-6.5 tikv=release-6.5 pd=release-6.5 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shiyuhang0, xuanyu66 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@lizhenhuan: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
New changes are detected. LGTM label has been removed. |
What problem does this PR solve?
close #2809
What is changed and how it works?
Provide invalidate region cache api
User can invalidate region cache use this code:
import com.pingcap.tikv.TiConfiguration
val tiConf = TiConfiguration.createDefault(spark.conf.get("spark.tispark.pd.addresses"))
com.pingcap.tikv.TiSession.getInstance(tiConf).getRegionManager().invalidateAllStoreAndRegion()
Check List
Tests
Code changes
Side effects
Related changes
tidb-ansible
repository