Hi everyone,
Maybe someone could help me diagnose what happed today with my
Galera cluster 3 nodes (WAN cluster)..
Database is the Drupal 7 and practically without data since it is a
new test installation. I only inserted some articles and enabled
some extra modules..
The Galera servers are mysql2, mysql3, mysql4 (I changed myself the
IPs in log file with these names) in a WAN cluster, installed and
monitored by SeveralNines admin application for Galera.
I am only writing to and reading from mysql3 in this test setup.
While mysql3 does not have any errors, below is the extract from
mysql2 log "grep ERROR mysql2_error.log" from today...
mysql4 has exactly the same errors in the log as mysql2.
The error seems to cause a WSREP_FATAL which brings down (restarts)
the mysql server and breaks the WAN cluster which then resyncs and
so on ...
The whole log files are attached..
from mysql2_error.log:
120404 10:13:12 [ERROR] Slave SQL: Could not
execute Write_rows event on table
staging_drupal.drupal_cache_bootstrap; Duplicate entry 'hook_info'
for key 'PRIMARY', Error_code: 1062; handler error
HA_ERR_FOUND_DUPP_KEY; the event's master log FIRST, end_log_pos
395, Error_code: 1062
120404 10:13:12 [ERROR] WSREP: Failed to apply trx: source:
f358b863-74ce-11e1-0800-7584d5c2c4ea version: 2 local: 0 state:
CERTIFYING flags: 1 conn_id: 554534 trx_id: 2957462 seqnos (l:
792, g: 9241, s: 9240, d: 9240, ts: 1333527181674499070)
120404 10:13:12 [ERROR] WSREP: Failed to apply app buffer: ?|O,
seqno: 9241, status: WSREP_FATAL
120404 10:13:12 [ERROR] WSREP: Node consistency compromized,
aborting...
120404 10:25:28 [ERROR] Slave SQL: Could not execute Write_rows
event on table staging_drupal.drupal_cache_bootstrap; Duplicate
entry 'hook_info' for key 'PRIMARY', Error_code: 1062; handler error
HA_ERR_FOUND_DUPP_KEY; the event's master log FIRST, end_log_pos
1671, Error_code: 1062
120404 10:25:28 [ERROR] WSREP: Failed to apply trx: source:
f358b863-74ce-11e1-0800-7584d5c2c4ea version: 2 local: 0 state:
CERTIFYING flags: 1 conn_id: 554942 trx_id: 2963543 seqnos (l: 63,
g: 9666, s: 9665, d: 9665, ts: 1333527917845603820)
120404 10:25:28 [ERROR] WSREP: Failed to apply app buffer: m|O,
seqno: 9666, status: WSREP_FATAL
120404 10:25:28 [ERROR] WSREP: Node consistency compromized,
aborting...
120404 10:29:12 [ERROR] Slave SQL: Could not execute Write_rows
event on table staging_drupal.drupal_cache_bootstrap; Duplicate
entry 'variables' for key 'PRIMARY', Error_code: 1062; handler error
HA_ERR_FOUND_DUPP_KEY; the event's master log FIRST, end_log_pos
9268, Error_code: 1062
120404 10:29:12 [ERROR] WSREP: Failed to apply trx: source:
f358b863-74ce-11e1-0800-7584d5c2c4ea version: 2 local: 0 state:
CERTIFYING flags: 1 conn_id: 555064 trx_id: 2969401 seqnos (l: 53,
g: 10119, s: 10118, d: 10112, ts: 1333528142353585540)
120404 10:29:12 [ERROR] WSREP: Failed to apply app buffer: N|O,
seqno: 10119, status: WSREP_FATAL
120404 10:29:12 [ERROR] WSREP: Node consistency compromized,
aborting...
show create table staging_drupal.drupal_cache_bootstrap;
+------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create
Table
|
+------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| drupal_cache_bootstrap | CREATE TABLE `drupal_cache_bootstrap` (
`cid` varchar(255) NOT NULL DEFAULT '' COMMENT 'Primary Key:
Unique cache ID.',
`data` longblob COMMENT 'A collection of data to cache.',
`expire` int(11) NOT NULL DEFAULT '0' COMMENT 'A Unix timestamp
indicating when the cache entry should expire, or 0 for never.',
`created` int(11) NOT NULL DEFAULT '0' COMMENT 'A Unix timestamp
indicating when the cache entry was created.',
`serialized` smallint(6) NOT NULL DEFAULT '0' COMMENT 'A flag to
indicate whether content is serialized (1) or not (0).',
PRIMARY KEY (`cid`),
KEY `expire` (`expire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cache table for data
required to bootstrap Drupal, may be...' |
+------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
thank you in advance
--
--
Haris Zukanovic