Skip to content

ddl: add realtikv test case for merge temp index #64436

Merged
ti-chi-bot[bot] merged 12 commits into
pingcap:masterfrom
fzzf678:add_index_conflict_test_case
Nov 13, 2025
Merged

ddl: add realtikv test case for merge temp index #64436
ti-chi-bot[bot] merged 12 commits into
pingcap:masterfrom
fzzf678:add_index_conflict_test_case

Conversation

@fzzf678
Copy link
Copy Markdown
Contributor

@fzzf678 fzzf678 commented Nov 12, 2025

What problem does this PR solve?

Issue Number: ref #61433

Problem Summary:

What changed and how does it work?

Add automated test cases for merge temp index stuck problem. In my test environment(MacBook Pro with Apple M4), this case takes about 16 second to complete. Before the commit #61445, this case will stuck and never success.

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 release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 12, 2025
@tiprow
Copy link
Copy Markdown

tiprow Bot commented Nov 12, 2025

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

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

Copy link
Copy Markdown
Collaborator

@Benjamin2037 Benjamin2037 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 ti-chi-bot Bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 12, 2025
@Benjamin2037 Benjamin2037 added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. labels Nov 12, 2025
}
})

time.Sleep(2 * time.Second) // wait workload run for a while
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe use a counter for how many workload queries are run, and wait this counter value > some value, it's might cause flaky or unable to run the case in CI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated, PTAL again

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.2650%. Comparing base (8c27816) to head (017d54f).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #64436        +/-   ##
================================================
+ Coverage   72.6827%   73.2650%   +0.5823%     
================================================
  Files          1865       1867         +2     
  Lines        506065     508866      +2801     
================================================
+ Hits         367822     372821      +4999     
+ Misses       115852     113857      -1995     
+ Partials      22391      22188       -203     
Flag Coverage Δ
integration 41.7612% <ø> (?)
unit 72.6304% <ø> (+0.3753%) ⬆️

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

Components Coverage Δ
dumpling 52.8700% <ø> (ø)
parser ∅ <ø> (∅)
br 45.7883% <ø> (-0.4223%) ⬇️
🚀 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.

@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 12, 2025
@fzzf678 fzzf678 removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 12, 2025
Comment thread tests/realtikvtest/addindextest3/temp_index_test.go Outdated
Comment on lines +243 to +245
for execCnt.Load() < 5000 {
time.Sleep(100 * time.Millisecond)
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use require.Eventually

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Nov 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [Benjamin2037,D3Hunter]

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 lgtm label Nov 13, 2025
@ti-chi-bot ti-chi-bot Bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 13, 2025
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Nov 13, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-11-12 06:53:45.828968145 +0000 UTC m=+857875.271998023: ☑️ agreed by Benjamin2037.
  • 2025-11-13 08:55:24.145821965 +0000 UTC m=+951573.588851844: ☑️ agreed by D3Hunter.

@fzzf678
Copy link
Copy Markdown
Contributor Author

fzzf678 commented Nov 13, 2025

/retest

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Nov 13, 2025

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

Details

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.

@fzzf678
Copy link
Copy Markdown
Contributor Author

fzzf678 commented Nov 13, 2025

/retest

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Nov 13, 2025

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

Details

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 merged commit 8a733f3 into pingcap:master Nov 13, 2025
27 checks passed
ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Nov 13, 2025
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Copy Markdown
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #64473.
But this PR has conflicts, please resolve them!

ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Nov 13, 2025
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Copy Markdown
Member

In response to a cherrypick label: new pull request created to branch release-8.1: #64474.
But this PR has conflicts, please resolve them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. 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.

5 participants