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

*: (release-6.5) Validate ts only for stale read #59741

Merged

Conversation

ekexium
Copy link
Member

@ekexium ekexium commented Feb 25, 2025

What problem does this PR solve?

Issue Number: ref #59402

Problem Summary:

The TS validator has no switch to control. Enabling it by default in an old release version is risky.

What changed and how does it work?

Only enable the ts check for stale reads

Check List

Tests

  • Unit test in client-go
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

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

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/cherry-pick-not-approved release-note-none Denotes a PR that doesn't merit a release note. cherry-pick-approved Cherry pick PR approved by release team. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed do-not-merge/cherry-pick-not-approved labels Feb 25, 2025
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Feb 25, 2025
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 25, 2025
Copy link

ti-chi-bot bot commented Feb 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-25 07:15:09.061176505 +0000 UTC m=+340057.014334771: ☑️ agreed by cfzjywxk.
  • 2025-02-25 07:18:22.565033876 +0000 UTC m=+340250.518192135: ☑️ agreed by MyonKeminta.

@ekexium
Copy link
Member Author

ekexium commented Feb 25, 2025

/retest

@MyonKeminta MyonKeminta added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 25, 2025
@ekexium
Copy link
Member Author

ekexium commented Feb 25, 2025

/hold

@ekexium ekexium force-pushed the release-6.5-disable-ts-validator branch from 91ec14c to d0bc208 Compare February 25, 2025 09:37
@ekexium ekexium changed the title store: (release-6.5) Ignore errors from ts validator store: (release-6.5) Validate ts only for stale read Feb 25, 2025
Signed-off-by: ekexium <[email protected]>
@ekexium ekexium force-pushed the release-6.5-disable-ts-validator branch from d0bc208 to d568bff Compare February 25, 2025 11:38
@ekexium ekexium changed the title store: (release-6.5) Validate ts only for stale read *: (release-6.5) Validate ts only for stale read Feb 25, 2025
Signed-off-by: ekexium <[email protected]>
@ekexium ekexium force-pushed the release-6.5-disable-ts-validator branch from 12795d4 to 4e8b083 Compare February 25, 2025 11:43
Signed-off-by: ekexium <[email protected]>
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release-6.5@438a8b6). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release-6.5     #59741   +/-   ##
================================================
  Coverage               ?   73.6550%           
================================================
  Files                  ?       1098           
  Lines                  ?     353643           
  Branches               ?          0           
================================================
  Hits                   ?     260476           
  Misses                 ?      76440           
  Partials               ?      16727           

Signed-off-by: ekexium <[email protected]>
Copy link

ti-chi-bot bot commented Feb 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfzjywxk, MyonKeminta

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 [MyonKeminta,cfzjywxk]

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

@ekexium
Copy link
Member Author

ekexium commented Feb 25, 2025

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 25, 2025
@BornChanger
Copy link
Contributor

/retest

@ti-chi-bot ti-chi-bot bot merged commit 9336ad0 into pingcap:release-6.5 Feb 25, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved cherry-pick-approved Cherry pick PR approved by release team. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants