Skip to content

PS-11080 fix: Spoiled logical clock information in rewritten binlog (part 4)#129

Merged
percona-ysorokin merged 1 commit into
Percona-Lab:0.2from
percona-ysorokin:sequence_number_rewrite_mtr
May 26, 2026
Merged

PS-11080 fix: Spoiled logical clock information in rewritten binlog (part 4)#129
percona-ysorokin merged 1 commit into
Percona-Lab:0.2from
percona-ysorokin:sequence_number_rewrite_mtr

Conversation

@percona-ysorokin
Copy link
Copy Markdown
Collaborator

https://perconadev.atlassian.net/browse/PS-11080

Added MTR test cases for the 'sequence_number' / 'last_committed' field
rewrite logic:

  • 'gtid_renumbering' - checks for renumbering when remote rotation occurs.
  • 'gtid_renumbering_local_rotation' - checks for renumbering when local rotation
    occurs.
  • 'gtid_renumbering_resume' - checks that 'last_sequence_number' is restored
    properly from the binlog metadata file upon PBS restart.
  • 'gtid_renumbering_resume_after_partial' - checks that 'last_sequence_number'
    in the binlog metadata file always corresponds to the actual data file (not the
    last seen value currently in the storage buffer). This helps with resuming PBS
    after the crash.

Currently 'gtid_renumbering_resume_after_partial' MTR test case requires
DEBUG_SYNC functionality to be available in the MySQL Server. Unfortunately,
at the moment we use release tarballs of the MySQL Server in GitHub Actions
workers and this test will always be skipped there.

Comment thread src/binsrv/storage.hpp Outdated
…part 4)

https://perconadev.atlassian.net/browse/PS-11080

Added MTR test cases for the 'sequence_number' / 'last_committed' field
rewrite logic:
* 'gtid_renumbering' - checks for renumbering when remote rotation occurs.
* 'gtid_renumbering_local_rotation' - checks for renumbering when local rotation
  occurs.
* 'gtid_renumbering_resume' - checks that 'last_sequence_number' is restored
  properly from the binlog metadata file upon PBS restart.
* 'gtid_renumbering_resume_after_partial' - checks that 'last_sequence_number'
  in the binlog metadata file always corresponds to the actual data file (not the
  last seen value currently in the storage buffer). This helps with resuming PBS
  after the crash.

Currently 'gtid_renumbering_resume_after_partial' MTR test case requires
DEBUG_SYNC functionality to be available in the MySQL Server. Unfortunately,
at the moment we use release tarballs of the MySQL Server in GitHub Actions
workers and this test will always be skipped there.

Co-authored-by: Yura Sorokin <yura.sorokin@percona.com>
@percona-ysorokin percona-ysorokin force-pushed the sequence_number_rewrite_mtr branch from 64a7287 to 68dfc85 Compare May 26, 2026 22:49
@percona-ysorokin percona-ysorokin merged commit 4cefd16 into Percona-Lab:0.2 May 26, 2026
7 checks passed
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.

2 participants