Skip to content

[hotfix] Fix stale read can not eliminate the learner read on TiFlash#10134

Merged
JaySon-Huang merged 4 commits intopingcap:release-8.1-20250425-v8.1.2from
JaySon-Huang:release-8.1-20250425-v8.1.2
Apr 25, 2025
Merged

[hotfix] Fix stale read can not eliminate the learner read on TiFlash#10134
JaySon-Huang merged 4 commits intopingcap:release-8.1-20250425-v8.1.2from
JaySon-Huang:release-8.1-20250425-v8.1.2

Conversation

@JaySon-Huang
Copy link
Contributor

Note:

What problem does this PR solve?

Issue Number: ref #4982, close #10046

Problem Summary:
update proxy to raftstore-proxy-8.1
Proxy PR:
Including:\nSubmodule contrib/tiflash-proxy caa7a0c1dd..96545a2632:

Fix safe ts not updated (#429) (#434)

The leader_safe_ts, self_safe_ts are always 0 in the TiFlash side, making TiFlash can not eliminate the learner read on region without any updates.

What is changed and how it works?

For detailed reasons why safe_ts failed to be updated, checkout the description on pingcap/tidb-engine-ext#429.

Check List

Tests

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

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Fix the issue that `SELECT ... AS OF TIMESTAMP` can not eliminate the learner read on TiFlash as expected

CalvinNeo and others added 4 commits April 25, 2025 08:58
… proxy (pingcap#9841)

ref pingcap#4982, close pingcap#9745

Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
…p#9882)

ref pingcap#9745, close pingcap#9880

Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>

Co-authored-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: JaySon-Huang <tshent@qq.com>
…ingcap#9893)

close pingcap#9750

Add a label with {"exclusive": "no-data"}, so that PD won't select TiFlash compute node stores for placing Region

Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 25, 2025
@CalvinNeo
Copy link
Member

CalvinNeo commented Apr 25, 2025

Note:

  • The red box is the difference between current release-8.1 and the the HEAD
  • The green box is the what we picked.

image

@CalvinNeo
Copy link
Member

/approve

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Apr 25, 2025

@CalvinNeo: It seems you want to approve this PR, I will help you trigger all the tests:

/run-all-tests

  • Currently the CI jobs are not prow job style, we need it to notify Jenkins server to run them.
  • 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.

If you have any questions about the PR merge process, please refer to pr process.

Details

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.

@ti-chi-bot ti-chi-bot bot added the approved label Apr 25, 2025
Copy link
Member

@CalvinNeo CalvinNeo left a comment

Choose a reason for hiding this comment

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

lgtm

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Apr 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CalvinNeo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

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 added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Apr 25, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Apr 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-04-25 01:58:02.983687107 +0000 UTC m=+580026.795477489: ☑️ agreed by CalvinNeo.

@JaySon-Huang JaySon-Huang merged commit 8dbb1ba into pingcap:release-8.1-20250425-v8.1.2 Apr 25, 2025
3 of 4 checks passed
@JaySon-Huang JaySon-Huang deleted the release-8.1-20250425-v8.1.2 branch April 25, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants