Hi There,
We have a cluster with 3 nodes ( 2 nodes and a gardb ).
The used version is :
8.0.44-35.1 Percona XtraDB Cluster (GPL), Release rel35, Revision 7284a5c, WSREP version 26.1.4.3
We observed that, when the parameter sql_generate_invisible_primary_key is changed dinamycally on both nodes by:
set global sql_generate_invisible_primary_key=OFF;
A table creation on one node adds the column my_row_id on the other node ( where the create table is not executed but only replicated )
How to reproduce:
-
On both nodes : the parameter sql_generate_invisible_primary_key is ON
-
Set the parametr to OFF on both nodes.
-
Check the new value is OFF on both nodes at session level
-
Create a table in one node: create table prova.prova ( id int NOT NULL, testo varchar(30));
-
On the node where the table is created:
CREATE TABLEprova(
idint NOT NULL,
testovarchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci -
On the other node:
CREATE TABLE
prova(
my_row_idbigint unsigned NOT NULL AUTO_INCREMENT /*!80023 INVISIBLE */,
idint NOT NULL,
testovarchar(30) DEFAULT NULL,
PRIMARY KEY (my_row_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
As you can see, the table’s structure is different.
The same behaviour with 8.4 version.
How can we fix this issue ?
Thanks.