Skip to content

Conversation

@meiji163
Copy link
Contributor

@meiji163 meiji163 commented Oct 10, 2025

Description

This PR extract toxiproxy test from #1584. It gives the option to run docker localtests with toxiproxy for MySQL replica connection. It is useful for debugging issues related to network flakiness

Usage

./script/docker-gh-ost-replica-tests up -t
./script/docker-gh-ost-replica-tests run -t

In case this PR introduced Go code changes:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

@meiji163 meiji163 marked this pull request as ready for review October 10, 2025 03:06
Copilot AI review requested due to automatic review settings October 10, 2025 03:06
@meiji163 meiji163 changed the title Add toxiproxy localtests Add toxiproxy localtest Oct 10, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@meiji163 meiji163 merged commit 57df4b4 into master Oct 10, 2025
10 of 13 checks passed
meiji163 added a commit that referenced this pull request Oct 10, 2025
meiji163 added a commit that referenced this pull request Oct 10, 2025
…ly (#1594)

* Panic if InitiateHeartbeat exhausts retries to avoid looping infinitely.

Based on experience, if the writer database fails inbeetween the copy & cutover stages (e.g. during cutover pause), the heartbeat writes will fail and stop,
then leading to throttled state and an infinite loop of throttler.shouldThrottle().

Since this state is irrecoverable, make the heartbeat writer panic if retries are exhausted, so that the migration can fail and be restarted later.

* Add sysbench localtest (#1590)

* add sysbench localtest

* fix table name

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ensure cleanup

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* add toxiproxy option for localtests (#1591)

---------

Co-authored-by: Jan Grodowski <jan.grodowski@shopify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants