Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.6.12
-
None
Description
When an user wants to set an algorithm for ALTER TABLE, he can do it in two ways:
- use SET SESSION ALGORITHM variable
- specify ALGORITHM= in the ALTER statement
Unfortunately, the former will cause the alter to be processed in different ways on master and replicas (either async or galera replicas) because, obviously, SET SESSION is not replicated.
So, the outcome in presence of replication is not what the user wants.
Furthermore, this may cause galera cluster breakdown when the alter fails on master due to unsupported algorithm, but it is executed on the other galera nodes because there, default algorithm is selected.
I would suggest to deprecate the former way to specify ALGORITHM for ALTER and only allow it to be specified in ALTER statement itself.
This will avoid operational incidents (I have already witnessed a few myself).
Thanks
Rick
Attachments
Issue Links
- is part of
-
MDEV-33655 Remove alter_algorithm
- Closed
- relates to
-
MDEV-30456 Galera / MariaDB issue with ALTER TABLE statement still propagating to other cluster members in TOI while it failed on origin server
- In Review