Hi, I'm getting errors by LCF (LOCAL_CERT_FAILURES) in my Cluster MariaDB 10.1.32 + Galera 25.3.23(r3789):
2018-05-23 12:48:31 140270557226752 [Note] WSREP: trx conflict for key (1,FLAT8)859567db 91c26cb1: source: 377e9f36-5c04-11e8-8a20-77a19b389572 version: 3 local: 1 state: CERTIFYING flags: 1 conn_id: 2393076 trx_id: 95945523 seqnos (l: 215847, g: 22661545, s: 22661543, d: 22661525, ts: 35265156913652919) <--X--> source: 1bcd7fb6-5c07-11e8-89d0-ef9b351c12b0 version: 3 local: 0 state: COMMITTED flags: 1 conn_id: 2400360 trx_id: 75585097 seqnos (l: 215846, g: 22661544, s: 22661543, d: 22661543, ts: 35582694130759059)
2018-05-23 12:48:31 140270557226752 [Note] WSREP: cluster conflict due to certification failure for threads:
2018-05-23 12:48:31 140270557226752 [Note] WSREP: Victim thread:
THD: 2393076, mode: local, state: executing, conflict: cert failure, seqno: 22661545
SQL: commit
I have looked at the winner and vitctim transactions in the binary and general log and these are the sentences that cause the error (two INSERT with different values on the same table):
Winner: insert into appl_traza_aux_m (DS_PROCS_CREA_REG, FX_CREA_REG, CD_ACCION, ID_USU, DS_CRITICIDAD, DS_TRAZA, CD_LOGIN_EXTNO, IN_VISUA_CAU) values ('Creacion', '2018-05-24 13:53:39', 998, 12660, 'INFO', 'Logout realizado correctamente', 'X07984A', 1)
Victim: insert into appl_traza_aux_m (DS_PROCS_CREA_REG, FX_CREA_REG, CD_ACCION, ID_USU, DS_CRITICIDAD, DS_TRAZA, CD_LOGIN_EXTNO, IN_VISUA_CAU) values ('Creacion', '2018-05-24 13:53:39', 998, 56850, 'INFO', 'Logout realizado correctamente', 'S02326G', 1)
CREATE TABLE `appl_traza_aux_m` (
`id` bigint(12) NOT NULL AUTO_INCREMENT,
`ds_criticidad` varchar(5) NOT NULL,
`cd_accion` smallint(3) NOT NULL,
`id_usu` int(8) DEFAULT NULL,
`cd_login_extno` varchar(50) DEFAULT NULL,
`ds_traza` text NOT NULL,
`in_visua_cau` tinyint(4) NOT NULL DEFAULT '0',
`fx_crea_reg` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ds_procs_crea_reg` varchar(50) NOT NULL,
`fx_modif_reg` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`ds_procs_modif_reg` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_traza_aux_m_tipo_accion` (`cd_accion`),
CONSTRAINT `_fk_traza_aux_m_tipo_accion` FOREIGN KEY (`cd_accion`) REFERENCES `appl_tipo_accion_t` (`cd_accion`)
) ENGINE=InnoDB AUTO_INCREMENT=49181399 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4It seems that it may be related to the AUTO_INCREMENT field.
Innodb_autoinc_lock_mode=2 and wsrep_auto_increment_control=ON but it seems that due to some error the same value is being generated in different nodes for the AUTO_INCREMENT field.
Any error or bug?
I have tried with wsrep_slave_threads=1 and wsrep_slave_fk_checks=OFF but the error follows.
any ideas?
Thanks in advance,
Jon.