Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lightning: adjust TS assertion range between TiDB and PD #58594

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

takaebato
Copy link
Contributor

@takaebato takaebato commented Dec 28, 2024

What problem does this PR solve?

Issue Number: close #58449
Problem Summary:

Timestamp assertion was flaky due to minor clock drift between TiDB and PD.

What changed and how does it work?

Expanded the range to tolerate minor differences, allowing timestamps up to 1 hour in the future and 24 hours in the past.

Check List

Tests

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

I’d greatly appreciate it if you could suggest a good place to add tests, if needed!

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.

Fix flaky assert by adjusting the TS range

@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. labels Dec 28, 2024
@sre-bot
Copy link
Contributor

sre-bot commented Dec 28, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

ti-chi-bot bot commented Dec 28, 2024

Welcome @takaebato!

It looks like this is your first PR to pingcap/tidb 🎉.

I'm the bot to help you request reviewers, add labels and more, See available commands.

We want to make sure your contribution gets all the attention it needs!



Thank you, and welcome to pingcap/tidb. 😃

Copy link

ti-chi-bot bot commented Dec 28, 2024

Hi @takaebato. Thanks for your PR.

I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 28, 2024
Copy link

tiprow bot commented Dec 28, 2024

Hi @takaebato. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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 kubernetes-sigs/prow repository.

@takaebato takaebato marked this pull request as ready for review December 29, 2024 01:03
@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. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. labels Dec 29, 2024
@lance6716
Copy link
Contributor

/ok-to-test

@ti-chi-bot ti-chi-bot bot added ok-to-test Indicates a PR is ready to be tested. and removed needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Dec 30, 2024
@lance6716
Copy link
Contributor

/cc @D3Hunter

@ti-chi-bot ti-chi-bot bot requested a review from D3Hunter December 30, 2024 11:06
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 30, 2024
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 73.9256%. Comparing base (0097df9) to head (990b576).
Report is 31 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #58594        +/-   ##
================================================
+ Coverage   73.5142%   73.9256%   +0.4114%     
================================================
  Files          1680       1710        +30     
  Lines        464725     474869     +10144     
================================================
+ Hits         341639     351050      +9411     
- Misses       102218     102274        +56     
- Partials      20868      21545       +677     
Flag Coverage Δ
integration 45.7191% <0.0000%> (?)
unit 72.3717% <0.0000%> (+0.1159%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.6910% <ø> (ø)
parser ∅ <ø> (∅)
br 45.7612% <ø> (-0.0133%) ⬇️

Copy link

ti-chi-bot bot commented Dec 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, lance6716

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 30, 2024
Copy link

ti-chi-bot bot commented Dec 30, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-30 11:22:12.89553663 +0000 UTC m=+349468.251541172: ☑️ agreed by D3Hunter.
  • 2024-12-30 11:28:50.965999337 +0000 UTC m=+349866.322003877: ☑️ agreed by lance6716.

@ti-chi-bot ti-chi-bot bot merged commit 42d4fae into pingcap:master Dec 30, 2024
25 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky assert "assert failed, TS used in import should in [now-1d, now]"
4 participants