Skip to content

New option to allow lower versions for replicas#67

Open
mszakami wants to merge 1 commit intopercona:masterfrom
mszakami:master
Open

New option to allow lower versions for replicas#67
mszakami wants to merge 1 commit intopercona:masterfrom
mszakami:master

Conversation

@mszakami
Copy link
Contributor

@mszakami mszakami commented Apr 9, 2025

Description

There may be a situation when one would need to be able to rearrange topology in such way that server with higher version will be LEADER for REPLICA that has lower version. This patch allows that by introduction of AllowLowerVersionForReplication option which is turned off by default. Once enabled each time such change will be made, warning will be written into log file.

There may be a situation when one would need to be able to rearrange
topology in such way thet server with higher version will be LEADER for
REPLICA that has lower version. This patch allows that by introduction
of AllowLowerVersionForReplication option which is turned off by
default. Once enabled each time such change will be made, warning will
be written into log file.
@pgporada
Copy link

It should be noted that this type of operation is unsupported by MariaDB. https://mariadb.com/kb/en/replication-overview/#cross-version-replication-compatibility

For anyone else coming along you should upgrade your replicas first, swap the primary to an upgraded server, then upgrade the previous primary.

@sleto-it
Copy link
Contributor

Mentioning the linked Jira ticket: DISTMYSQL-562

@kamil-holubicki kamil-holubicki force-pushed the master branch 2 times, most recently from d301f13 to 3b5b0f8 Compare January 15, 2026 08:43
@kamil-holubicki
Copy link
Contributor

Hi @mszakami , It will be merged via #86. I refactored and added tests to make maintenance easier. Please check.
@pgporada , yes, replication from higher to lower versions is not officially supported by MySQL as well. That's why the new option is OFF by default. If you set it to ON, it means you know what you do :)

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.

4 participants