Galera Cluster generates a GRA log files if it fails to apply the writeset on the target node. This files exists in the MySQL data directory
I use grareader to extract the SQL statement and get distinct statements only.
Node 1
# ls -lrt GRA_1_* | wc -l
2147
# for i in GRA_1_*; do grareader $i | grep -i table; done | sort -n | uniq
ALTER TABLE `Account` DROP INDEX `idContractAccount_UNI
ALTER TABLE container_backups ADD COLUMN updated_at DATETIME NOT
ALTER TABLE `Report` DROP INDEX `idReport_UNI
ALTER TABLE service_backups ADD COLUMN custom_id VARCHAR(255) NOT
CREATE TABLE `schema_migrations` (`filename` varchar(255) PRIMARY KEY) DEFAULT COLLATE=utf8
Node 2
# ls -lrt GRA_2_* | wc -l
2472
# for i in GRA_2_*; do grareader $i | grep -i table; done | sort -n | uniq
ALTER TABLE `Account` ADD INDEX `idContractAccount_UNIQUE` (`
ALTER TABLE `Account` DROP INDEX `idContractAccount_UNI
ALTER TABLE containers ADD COLUMN reprovisioning TINYINT(1) NOT
ALTER TABLE `Report` DROP INDEX `idReport_UNI
alter table Role add UNIQUE INDEX `endpointName_UNIQUE` (`endpointNames` ASC) COMMEN
ALTER TABLE service_backups ADD COLUMN custom_id VARCHAR(255) NOT
ALTER TABLE service_instance DROP COLUMN is_a
ALTER TABLE TaxRate DROP INDEX idText_UN
ALTER TABLE users ADD COLUMN verified BOO
CREATE TABLE authz_approvals ( userName VARCHAR(36) not null, clientId VARCHAR(36) not null, scope VARCHAR(255) not null, expiresAt TIMESTAMP not null, status VARCHAR(50) default 'APPROVED' not null, lastModifiedAt TIMESTAMP not null, primary key (userName, clientId, scop
CREATE TABLE external_group_mapping ( group_id VARCHAR(36) not null, external_group VARCHAR(255) not null, added TIMESTAMP default current_timestamp not null, primary key (group_id, external_grou
CREATE TABLE group_membership ( group_id VARCHAR(36) not null, member_id VARCHAR(36) not null, member_type VARCHAR(8) default 'USER' not null, authorities VARCHAR(255) default 'READ' not null, added TIMESTAMP default current_timestamp not null, primary key (group_id, member_i
CREATE TABLE groups ( id VARCHAR(36) not null primary key, displayName VARCHAR(255) not null, created TIMESTAMP default current_timestamp not null, lastModified TIMESTAMP null, version INTEGER default 0 not null, constraint unique_uk_2 unique(displayNam
CREATE TABLE oauth_client_details ( client_id VARCHAR(255) PRIMARY KEY, resource_ids VARCHAR(1024), client_secret VARCHAR(255), scope VARCHAR(255), authorized_grant_types VARCHAR(255), web_server_redirect_uri VARCHAR(1024), authorities VARCHAR(255), access_token_validity INTEGER default 0, refresh_token_validity INTEGER default 0, additional_information VARCHAR(409
create table oauth_code ( code VARCHAR(255), authentication BL
CREATE TABLE `schema_migrations` (`filename` varchar(255) PRIMARY KEY) DEFAULT COLLATE=utf8
CREATE TABLE sec_audit ( principal_id char(36) not null, event_type INTEGER not null, origin VARCHAR(255) not null, event_data VARCHAR(255), created TIMESTAMP default current_timesta
CREATE TABLE users ( id char(36) not null primary key, created TIMESTAMP default current_timestamp not null, lastModified TIMESTAMP null, version BIGINT default 0 not null, username VARCHAR(255) not null, password VARCHAR(255) not null, email VARCHAR(255) not null, authorities VARCHAR(1024) default 'uaa.user' not null, givenName VARCHAR(255), familyName VARCHAR(255), active BOOLEAN default true not null, phoneNumber VARCHAR(25
Node 3
# ls -lrt GRA_2_* | wc -l
3461
# for i in GRA_2_*; do grareader $i | grep -i table; done | sort -n | uniq
ALTER TABLE `Account` ADD INDEX `idContractAccount_UNIQUE` (`
ALTER TABLE container_backups ADD COLUMN updated_at DATETIME NOT
ALTER TABLE containers ADD COLUMN reprovisioning TINYINT(1) NOT
alter table Role add UNIQUE INDEX `endpointName_UNIQUE` (`endpointNames` ASC) COMMEN
ALTER TABLE service_backups ADD COLUMN custom_id VARCHAR(255) NOT
ALTER TABLE service_instance DROP COLUMN is_a
ALTER TABLE TaxRate DROP INDEX idText_UN
ALTER TABLE users ADD COLUMN verified BOO
CREATE TABLE authz_approvals ( userName VARCHAR(36) not null, clientId VARCHAR(36) not null, scope VARCHAR(255) not null, expiresAt TIMESTAMP not null, status VARCHAR(50) default 'APPROVED' not null, lastModifiedAt TIMESTAMP not null, primary key (userName, clientId, scop
CREATE TABLE external_group_mapping ( group_id VARCHAR(36) not null, external_group VARCHAR(255) not null, added TIMESTAMP default current_timestamp not null, primary key (group_id, external_grou
CREATE TABLE group_membership ( group_id VARCHAR(36) not null, member_id VARCHAR(36) not null, member_type VARCHAR(8) default 'USER' not null, authorities VARCHAR(255) default 'READ' not null, added TIMESTAMP default current_timestamp not null, primary key (group_id, member_i
CREATE TABLE groups ( id VARCHAR(36) not null primary key, displayName VARCHAR(255) not null, created TIMESTAMP default current_timestamp not null, lastModified TIMESTAMP null, version INTEGER default 0 not null, constraint unique_uk_2 unique(displayNam
CREATE TABLE oauth_client_details ( client_id VARCHAR(255) PRIMARY KEY, resource_ids VARCHAR(1024), client_secret VARCHAR(255), scope VARCHAR(255), authorized_grant_types VARCHAR(255), web_server_redirect_uri VARCHAR(1024), authorities VARCHAR(255), access_token_validity INTEGER default 0, refresh_token_validity INTEGER default 0, additional_information VARCHAR(409
create table oauth_code ( code VARCHAR(255), authentication BL
CREATE TABLE `schema_migrations` (`filename` varchar(255) PRIMARY KEY) DEFAULT COLLATE=utf8
CREATE TABLE sec_audit ( principal_id char(36) not null, event_type INTEGER not null, origin VARCHAR(255) not null, event_data VARCHAR(255), created TIMESTAMP default current_timesta
CREATE TABLE users ( id char(36) not null primary key, created TIMESTAMP default current_timestamp not null, lastModified TIMESTAMP null, version BIGINT default 0 not null, username VARCHAR(255) not null, password VARCHAR(255) not null, email VARCHAR(255) not null, authorities VARCHAR(1024) default 'uaa.user' not null, givenName VARCHAR(255), familyName VARCHAR(255), active BOOLEAN default true not null, phoneNumber VARCHAR(25
On every node the /var/lib/mysql/data
have different size.
How is the procedure to fix those replication errors? It seems every node have other data, so there are inconsistencies.
Please explain me what is required to get a clean state.