Skip to content

tests: isolate next gen upstream TiKV wal-sync dirs (#4685) - #5776

Merged
ti-chi-bot[bot] merged 2 commits into
pingcap:release-nextgen-202603from
ti-chi-bot:cherry-pick-4685-to-release-nextgen-202603
Jul 27, 2026
Merged

ti-chi-bot[bot] merged 2 commits into
pingcap:release-nextgen-202603from
ti-chi-bot:cherry-pick-4685-to-release-nextgen-202603

Conversation

@ti-chi-bot

Copy link
Copy Markdown
Member

This is an automated cherry-pick of #4685

What problem does this PR solve?

Issue Number: close #4684

In next-gen integration startup, all upstream TiKV instances shared the same rfengine.wal-sync-dir. This can cause unstable startup behavior and lead to flaky failures when bootstrapping upstream system TiDB.

What is changed and how it works?

  • Remove [rfengine] with a shared wal-sync-dir from common upstream-tikv.toml.
  • Generate per-instance upstream TiKV config (upstream-tikv1.toml, upstream-tikv2.toml, upstream-tikv3.toml).
  • Append per-instance [rfengine] settings and set isolated wal-sync-dir for each TiKV.
  • Create per-instance wal-sync directories before launching TiKV.
  • Point each upstream TiKV process to its own config file.
  • Remove the fixed 30s sleep before starting TiDB.

Check List

Tests

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

Test commands:

  • go test ./tests/integration_tests/_utils -run TestNextGenUpstreamTiKVWalSyncDirIsPerInstance -count=1
  • go test ./tests/integration_tests/_utils -count=1
  • bash -n tests/integration_tests/_utils/start_tidb_cluster_nextgen

Questions

Will it cause performance regression or break compatibility?

No.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None

Fixes flaky next-gen integration startup where upstream TiKV instances shared one rfengine wal-sync-dir path.

Generate per-instance upstream TiKV configs with isolated wal-sync-dir and add a regression test.

Ref pingcap#4684

Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
@ti-chi-bot ti-chi-bot added 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. type/cherry-pick-for-release-nextgen-202603 labels Jul 27, 2026
@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d3cb335e-96ae-4a58-a30d-e2ddb24a88a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tenfyzhong

Copy link
Copy Markdown
Contributor

/test next-gen

@ti-chi-bot

ti-chi-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wk989898

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 approved label Jul 27, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 4e01285 into pingcap:release-nextgen-202603 Jul 27, 2026
7 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/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/cherry-pick-for-release-nextgen-202603

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants