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

provide invalidate region cache api #2810

Merged

Conversation

lizhenhuan
Copy link

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

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to update the tidb-ansible repository
  • Need to be included in the release note

@sre-bot
Copy link
Contributor

sre-bot commented Mar 21, 2025

CLA assistant check
All committers have signed the CLA.

@ti-chi-bot ti-chi-bot bot requested a review from zhangyangyu March 21, 2025 06:27
Copy link

ti-chi-bot bot commented Mar 21, 2025

Welcome @lizhenhuan! It looks like this is your first PR to pingcap/tispark 🎉

@ti-chi-bot ti-chi-bot bot added the size/S label Mar 21, 2025
@shiyuhang0
Copy link
Member

please sign the license to make action happy

@shiyuhang0
Copy link
Member

/run-all-tests tidb=release-6.5 tikv=release-6.5 pd=release-6.5

Copy link

ti-chi-bot bot commented Mar 25, 2025

[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:
  • OWNERS [shiyuhang0,xuanyu66]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the lgtm label Mar 25, 2025
Copy link

ti-chi-bot bot commented Mar 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-03-24 14:06:55.797830122 +0000 UTC m=+882909.482066220: ☑️ agreed by shiyuhang0.
  • 2025-03-25 08:46:00.409984022 +0000 UTC m=+950054.094220119: ☑️ agreed by xuanyu66.
  • 2025-03-25 08:49:13.882602168 +0000 UTC m=+950247.566838249: ✖️🔁 reset by ti-chi-bot[bot].

Copy link

ti-chi-bot bot commented Mar 25, 2025

@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.

Copy link

ti-chi-bot bot commented Mar 25, 2025

New changes are detected. LGTM label has been removed.

@shiyuhang0 shiyuhang0 merged commit de3f4a5 into pingcap:release-2.5 Mar 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants