Skip to content

Conversation

Tristan1900
Copy link
Contributor

@Tristan1900 Tristan1900 commented Jul 16, 2025

What problem does this PR solve?

Issue Number: close #62546

Problem Summary:

What changed and how does it work?

change append migration op to acquire read lock instead of write lock so it can works with restore at the same time.
create a new append_lock that append will acquire after acquiring read lock (two phase locking), to prevent multiple append threads to race.

Append migration should work fine with restore as new ssts added will have larger TS that any restore should filter out, effectively invisible to the ongoing restore.

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.

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/needs-linked-issue do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 16, 2025
Copy link

tiprow bot commented Jul 16, 2025

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

Copy link

codecov bot commented Jul 16, 2025

Codecov Report

❌ Patch coverage is 64.17910% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.1980%. Comparing base (833b1be) to head (f2b7ebb).
⚠️ Report is 143 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #62433        +/-   ##
================================================
+ Coverage   72.8992%   77.1980%   +4.2987%     
================================================
  Files          1753       1818        +65     
  Lines        484943     524477     +39534     
================================================
+ Hits         353520     404886     +51366     
+ Misses       109785      96720     -13065     
- Partials      21638      22871      +1233     
Flag Coverage Δ
integration 50.7450% <49.2537%> (?)
unit 74.5196% <41.7910%> (+2.3751%) ⬆️

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

Components Coverage Δ
dumpling 52.9532% <ø> (+0.1728%) ⬆️
parser ∅ <ø> (∅)
br 63.7811% <64.1791%> (+17.4794%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Wenqi Mou <[email protected]>
@Tristan1900
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Jul 22, 2025

@Tristan1900: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@Tristan1900
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Jul 22, 2025

@Tristan1900: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@Tristan1900
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Jul 23, 2025

@Tristan1900: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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 approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jul 31, 2025
Copy link

ti-chi-bot bot commented Aug 1, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leavrth, YuJuncen

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 Aug 1, 2025
Copy link

ti-chi-bot bot commented Aug 1, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-07-31 10:02:50.868347294 +0000 UTC m=+171983.553617530: ☑️ agreed by YuJuncen.
  • 2025-08-01 03:04:01.108892569 +0000 UTC m=+233253.794162805: ☑️ agreed by Leavrth.

Copy link

tiprow bot commented Aug 1, 2025

@Tristan1900: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
tidb_parser_test f2b7ebb link true /test tidb_parser_test

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@ti-chi-bot ti-chi-bot bot merged commit 601e040 into pingcap:master Aug 1, 2025
44 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

br: allow log backup migration works with restore at the same time
3 participants