server
server copied to clipboard
MDEV-32633: Fix Galera cluster <-> native replication interaction
- [x] The Jira issue number for this PR is: MDEV-32633
GTID events are applied without a running server transaction, we need to set next transaction ID for Wsrep transaction.
The whole Galera cluster now has a single GTID value (including the server ID throughout the cluster), fix the config accordingly.
Add force restart so that repeated MTR test execution prints consistent GTID values, otherwise they would have been recovered from the previous run.
Release Notes
The fix is for versions 10.5 upwards.
How can this PR be tested?
Re-enabled previously failing MTR test.
Basing the PR against the correct MariaDB version
- [ ] This is a new feature and the PR is based against the latest MariaDB development branch.
- [x] This is a bug fix and the PR is based against the earliest maintained branch in which the bug can be reproduced.
PR quality check
- [x] I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
- [x] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thanks, fixes merged with head revision: https://github.com/MariaDB/server/commit/0cc9b49751fc86f7942e19fe6ed8f7227f847c02 https://github.com/MariaDB/server/commit/a4838721a252ea5570b5fed9ab56e38e5b234865 https://github.com/MariaDB/server/commit/c21aa486a86d9db29ad16ff279380969443df00f