Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Galera crash

Received: by 10.236.181.34 with SMTP id k22mr8453996yhm.46.1343770391341;
        Tue, 31 Jul 2012 14:33:11 -0700 (PDT)
X-BeenThere: codership-team@googlegroups.com
Received: by 10.236.78.164 with SMTP id g24ls1695708yhe.6.gmail; Tue, 31 Jul
 2012 14:33:10 -0700 (PDT)
Received: by 10.236.109.233 with SMTP id s69mr3489605yhg.11.1343770390506;
        Tue, 31 Jul 2012 14:33:10 -0700 (PDT)
Date: Tue, 31 Jul 2012 14:33:09 -0700 (PDT)
From: jdf <jdfm...@gmail.com>
To: codership-team@googlegroups.com
Message-Id: <a5ab8038-b177-4b23-80b3-91e2e15dcf04@googlegroups.com>
In-Reply-To: <20120801002647.Horde.6tWCC0v4Cn9QGE2XgtmhH9A@webmail.zoner.fi>
References: <6ce44c7c-50a5-4bb6-a8b1-49649d86b6cd@googlegroups.com>
 <20120731005132.Horde.DgG5b0v4Cn9QFwHkw5nH_kA@webmail.zoner.fi>
 <da97897d-b433-48fa-9356-c8305f80b89a@googlegroups.com>
 <20120801002647.Horde.6tWCC0v4Cn9QGE2XgtmhH9A@webmail.zoner.fi>
Subject: Re: [codership-team] Galera crash
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1120_26874062.1343770389730"

------=_Part_1120_26874062.1343770389730
Content-Type: multipart/alternative; 
	boundary="----=_Part_1121_29705786.1343770389730"

------=_Part_1121_29705786.1343770389730
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

mysql> show create table sales_flat_order_item \G;
*************************** 1. row ***************************
       Table: sales_flat_order_item
Create Table: CREATE TABLE `sales_flat_order_item` (
  `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int(10) unsigned NOT NULL DEFAULT '0',
  `parent_item_id` int(10) unsigned DEFAULT NULL,
  `quote_item_id` int(10) unsigned DEFAULT NULL,
  `store_id` smallint(5) unsigned DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(10) unsigned DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL,
  `product_options` text,
  `weight` decimal(12,4) DEFAULT '0.0000',
  `is_virtual` tinyint(1) unsigned DEFAULT NULL,
  `sku` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) DEFAULT NULL,
  `description` text,
  `applied_rule_ids` text,
  `additional_data` text,
  `free_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_qty_decimal` tinyint(1) unsigned DEFAULT NULL,
  `no_discount` tinyint(1) unsigned DEFAULT '0',
  `qty_backordered` decimal(12,4) DEFAULT '0.0000',
  `qty_canceled` decimal(12,4) DEFAULT '0.0000',
  `qty_invoiced` decimal(12,4) DEFAULT '0.0000',
  `qty_ordered` decimal(12,4) DEFAULT '0.0000',
  `qty_refunded` decimal(12,4) DEFAULT '0.0000',
  `qty_shipped` decimal(12,4) DEFAULT '0.0000',
  `base_cost` decimal(12,4) DEFAULT '0.0000',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `original_price` decimal(12,4) DEFAULT NULL,
  `base_original_price` decimal(12,4) DEFAULT NULL,
  `tax_percent` decimal(12,4) DEFAULT '0.0000',
  `tax_amount` decimal(12,4) DEFAULT '0.0000',
  `base_tax_amount` decimal(12,4) DEFAULT '0.0000',
  `tax_invoiced` decimal(12,4) DEFAULT '0.0000',
  `base_tax_invoiced` decimal(12,4) DEFAULT '0.0000',
  `discount_percent` decimal(12,4) DEFAULT '0.0000',
  `discount_amount` decimal(12,4) DEFAULT '0.0000',
  `base_discount_amount` decimal(12,4) DEFAULT '0.0000',
  `discount_invoiced` decimal(12,4) DEFAULT '0.0000',
  `base_discount_invoiced` decimal(12,4) DEFAULT '0.0000',
  `amount_refunded` decimal(12,4) DEFAULT '0.0000',
  `base_amount_refunded` decimal(12,4) DEFAULT '0.0000',
  `row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `base_row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `row_weight` decimal(12,4) DEFAULT '0.0000',
  `gift_message_id` int(10) DEFAULT NULL,
  `gift_message_available` int(10) DEFAULT NULL,
  `base_tax_before_discount` decimal(12,4) DEFAULT NULL,
  `tax_before_discount` decimal(12,4) DEFAULT NULL,
  `ext_order_item_id` varchar(255) DEFAULT NULL,
  `weee_tax_applied` text,
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL,
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL,
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL,
  `base_weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL,
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL,
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL,
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL,
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL,
  `locked_do_invoice` tinyint(1) unsigned DEFAULT NULL,
  `locked_do_ship` tinyint(1) unsigned DEFAULT NULL,
  `price_incl_tax` decimal(12,4) DEFAULT NULL,
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL,
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL,
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL,
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL,
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL,
  `hidden_tax_invoiced` decimal(12,4) DEFAULT NULL,
  `base_hidden_tax_invoiced` decimal(12,4) DEFAULT NULL,
  `hidden_tax_refunded` decimal(12,4) DEFAULT NULL,
  `base_hidden_tax_refunded` decimal(12,4) DEFAULT NULL,
  `is_nominal` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`item_id`),
  KEY `IDX_ORDER` (`order_id`),
  KEY `IDX_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_PARENT` FOREIGN KEY (`order_id`) 
REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE 
CASCADE,
  CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_STORE` FOREIGN KEY (`store_id`) 
REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3808 DEFAULT CHARSET=utf8
1 row in set (0.00 sec)

On Tuesday, July 31, 2012 4:26:47 PM UTC-5, Seppo Jaakola wrote:
>
> Looks like we have worked with similar issue before. Can you please   
> send the output of: 
> mysql> SHOW CREATE TABLE sales_flat_order_item; 
>
>
> -seppo 
>
> Quoting jdf <jdfm...@gmail.com>: 
>
> > It appears one of our customers who uses Magento is causing this: 
> > 
> > 
> > *InnoDB: Error: record has 4411 fields 
> > InnoDB: Error: record has 0 fields 
> > WSREP: FK key len exceeded 0 16926752 3500 
> > 120731 11:42:25 [ERROR] WSREP: FK key set failed: 11 
> > InnoDB: unknown error code 11 
> > 120731 11:42:25  InnoDB: Assertion failure in thread 139836464727808 in 
> > file row0mysql.c line 649 
> > InnoDB: We intentionally generate a memory trap. 
> > InnoDB: Submit a detailed bug report to http://bugs.mysql.com. 
> > InnoDB: If you get repeated assertion failures or crashes, even 
> > InnoDB: immediately after the mysqld startup, there may be 
> > InnoDB: corruption in the InnoDB tablespace. Please refer to 
> > InnoDB: 
> http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html 
> > InnoDB: about forcing recovery. 
> > 16:42:25 UTC - mysqld got signal 6 ; 
> > This could be because you hit a bug. It is also possible that this 
> binary 
> > or one of the libraries it was linked against is corrupt, improperly 
> built, 
> > or misconfigured. This error can also be caused by malfunctioning 
> hardware. 
> > We will try our best to scrape up some info that will hopefully help 
> > diagnose the problem, but since we have already crashed, 
> > something is definitely wrong and this may fail. 
> > 
> > key_buffer_size=67108864 
> > read_buffer_size=131072 
> > max_used_connections=24 
> > max_threads=1024 
> > thread_count=13 
> > connection_count=13 
> > It is possible that mysqld could use up to 
> > key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 
> > 2305792 K  bytes of memory 
> > Hope that's ok; if not, decrease some variables in the equation. 
> > 
> > Thread pointer: 0x7f2e2434fa80 
> > Attempting backtrace. You can use the following information to find out 
> > where mysqld died. If you see no messages after this, something went 
> > terribly wrong... 
> > stack_bottom = 7f2e36ce7e68 thread_stack 0x30000 
> > /usr/sbin/mysqld(my_print_stacktrace+0x35)[0x820a15] 
> > /usr/sbin/mysqld(handle_fatal_signal+0x36a)[0x69866a] 
> > /lib/libpthread.so.0(+0xf8f0)[0x7f2e7c0c58f0] 
> > /lib/libc.so.6(gsignal+0x35)[0x7f2e7b085a75] 
> > /lib/libc.so.6(abort+0x180)[0x7f2e7b0895c0] 
> > /usr/sbin/mysqld[0x848c0b] 
> > /usr/sbin/mysqld[0x84b1d4] 
> > /usr/sbin/mysqld[0x835c13] 
> > /usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0x68)[0x69d6f8] 
> > 
> /usr/sbin/mysqld(_Z12write_recordP3THDP5TABLEP12st_copy_info+0x5b)[0x572bfb] 
>
> > 
> /usr/sbin/mysqld(_Z12mysql_insertP3THDP10TABLE_LISTR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb+0xa46)[0x579506] 
>
> > /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x222f)[0x58bc7f] 
> > /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0xfa)[0x58e94a] 
> > 
> /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1eff)[0x5917df] 
>
> > /usr/sbin/mysqld(_Z10do_commandP3THD+0x1b3)[0x592673] 
> > /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x2c0)[0x62b230] 
> > /usr/sbin/mysqld(handle_one_connection+0x4c)[0x62b2ac] 
> > /lib/libpthread.so.0(+0x69ca)[0x7f2e7c0bc9ca] 
> > /lib/libc.so.6(clone+0x6d)[0x7f2e7b138cdd] 
> > 
> > Trying to get some variables. 
> > Some pointers may be invalid and cause the dump to abort. 
> > Query (28161a0): INSERT INTO `sales_flat_order_item` (`order_id`, 
> > `quote_item_id`, `store_id`, `created_at`, `updated_at`, `product_id`, 
> > `product_type`, `product_options`, `weight`, `is_virtual`, `sku`, 
> `name`, 
> > `description`, `applied_rule_ids`, `additional_data`, `is_qty_decimal`, 
> > `qty_backordered`, `qty_ordered`, `base_cost`, `price`, `base_price`, 
> > `original_price`, `base_original_price`, `tax_percent`, `tax_amount`, 
> > `base_tax_amount`, `discount_percent`, `discount_amount`, 
> > `base_discount_amount`, `row_total`, `base_row_total`, `row_weight`, 
> > `gift_message_id`, `gift_message_available`, `base_tax_before_discount`, 
> > `tax_before_discount`, `weee_tax_applied`, `weee_tax_applied_amount`, 
> > `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, 
> > `base_weee_tax_applied_row_amount`, `weee_tax_disposition`, 
> > `weee_tax_row_disposition`, `base_weee_tax_disposition`, 
> > `base_weee_tax_row_disposition`, `price_incl_tax`, 
> `base_price_incl_tax`, 
> > `row_total_incl_tax`, `base_row_total_incl_tax`, `hidden_tax_amount`, 
> > `base_hidden_tax_amount` 
> > Connection ID (thread ID): 27979 
> > Status: NOT_KILLED 
> > 
> > The manual page at http://dev.mysql.com/doc/mysql/en/crashing.htmlcontains 
> > information that should help you find out what is causing the crash. 
> > 120731 11:42:26 [Note] WSREP: wsrep_load(): loading provider library 
> > '/usr/lib/galera/libgalera_smm.so' 
> > 120731 11:42:26 [Note] WSREP: wsrep_load(): Galera 23.2.0(r120) by 
> > Codership Oy <i...@codership.com> loaded succesfully. 
> > 120731 11:42:26 [Note] WSREP: Reusing existing 
> > '/var/lib/mysql//galera.cache'. 
> > 120731 11:42:26 [Note] WSREP: Passing config to GCS: gcache.dir = 
> > /var/lib/mysql/; gcache.keep_pages_size = 0; gcache.mem_size = 0; 
> > gcache.name = /var/lib/mysql//galera.cache; gcache.page_size = 128M; 
> > gcache.size = 128M; gcs.fc_debug = 0; gcs.fc_factor = 0.5; gcs.fc_limit 
> = 
> > 16; gcs.fc_master_slave = NO; gcs.max_packet_size = 64500; 
> gcs.max_throttle 
> > = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; 
> gcs.recv_q_soft_limit 
> > = 0.25; replicator.causal_read_timeout = PT30S; replicator.commit_order 
> = 3 
> > 120731 11:42:26 [Note] WSREP: wsrep_sst_grab() 
> > 120731 11:42:26 [Note] WSREP: Start replication 
> > 120731 11:42:26 [Note] WSREP: Found saved state: 
> > 00000000-0000-0000-0000-000000000000:-1 
> > 120731 11:42:26 [Note] WSREP: Assign initial position for certification: 
> > -1, protocol version: -1 
> > 120731 11:42:26 [Note] WSREP: Setting initial position to 
> > 00000000-0000-0000-0000-000000000000:-1 
> > 120731 11:42:26 [Note] WSREP: protonet asio version 0 
> > 120731 11:42:26 [Note] WSREP: backend: asio 
> > 120731 11:42:26 [Note] WSREP: GMCast version 0 
> > 120731 11:42:26 [Note] WSREP: (b5ada0cd-db2e-11e1-0800-febf68ff291f, 
> > 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567 
> > 120731 11:42:26 [Note] WSREP: (b5ada0cd-db2e-11e1-0800-febf68ff291f, 
> > 'tcp://0.0.0.0:4567') multicast: , ttl: 1 
> > 120731 11:42:26 [Note] WSREP: EVS version 0 
> > 120731 11:42:26 [Note] WSREP: PC version 0 
> > 120731 11:42:26 [Note] WSREP: gcomm: connecting to group 
> > 'my_wsrep_cluster', peer '' 
> > 120731 11:42:26 [Note] WSREP: GMCast::handle_stable_view: 
> > view(view_id(PRIM,b5ada0cd-db2e-11e1-0800-febf68ff291f,1) memb { 
> >        b5ada0cd-db2e-11e1-0800-febf68ff291f, 
> > } joined { 
> > } left { 
> > } partitioned { 
> > }) 
> > 120731 11:42:26 [Note] WSREP: gcomm: connected 
> > 120731 11:42:26 [Note] WSREP: Changing maximum packet size to 64500, 
> > resulting msg size: 32636 
> > 120731 11:42:26 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0) 
> > 120731 11:42:26 [Note] WSREP: Opened channel 'my_wsrep_cluster' 
> > 120731 11:42:26 [Note] WSREP: New COMPONENT: primary = yes, my_idx = 0, 
> > memb_num = 1 
> > 120731 11:42:26 [Note] WSREP: Waiting for SST to complete. 
> > 120731 11:42:26 [Note] WSREP: Starting new group from scratch: 
> > b5ae0d77-db2e-11e1-0800-d2e9aa1e82bd 
> > 120731 11:42:26 [Note] WSREP: STATE_EXCHANGE: sent state UUID: 
> > b5ae23e6-db2e-11e1-0800-3bf856ec120f 
> > 120731 11:42:26 [Note] WSREP: STATE EXCHANGE: sent state msg: 
> > b5ae23e6-db2e-11e1-0800-3bf856ec120f 
> > 120731 11:42:26 [Note] WSREP: STATE EXCHANGE: got state msg: 
> > b5ae23e6-db2e-11e1-0800-3bf856ec120f from 0 (db02.dal01) 
> > 120731 11:42:26 [Note] WSREP: Quorum results: 
> >        version    = 2, 
> >        component  = PRIMARY, 
> >        conf_id    = 0, 
> >        members    = 1/1 (joined/total), 
> >        act_id     = 0, 
> >        last_appl. = -1, 
> >        protocols  = 0/3/1 (gcs/repl/appl), 
> >        group UUID = b5ae0d77-db2e-11e1-0800-d2e9aa1e82bd 
> > 120731 11:42:26 [Note] WSREP: Flow-control interval: [8, 16] 
> > 120731 11:42:26 [Note] WSREP: Restored state OPEN -> JOINED (0) 
> > 120731 11:42:26 [Note] WSREP: Member 0 (db02.dal01) synced with group. 
> > 120731 11:42:26 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0) 
> > 120731 11:42:26 [Note] WSREP: New cluster view: global state: 
> > b5ae0d77-db2e-11e1-0800-d2e9aa1e82bd:0, view# 1: Primary, number of 
> nodes: 
> > 1, my index: 0, protocol version 1 
> > 120731 11:42:26 [Note] WSREP: SST complete, seqno: 0 
> > 120731 11:42:26 InnoDB: The InnoDB memory heap is disabled 
> > 120731 11:42:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
> > 120731 11:42:26 InnoDB: Compressed tables use zlib 1.2.3.3 
> > 120731 11:42:26 InnoDB: Using Linux native AIO 
> > 120731 11:42:26 InnoDB: Initializing buffer pool, size = 128.0M 
> > 120731 11:42:26 InnoDB: Completed initialization of buffer pool 
> > 120731 11:42:26 InnoDB: highest supported file format is Barracuda. 
> > InnoDB: Log scan progressed past the checkpoint lsn 15286934250 
> > 120731 11:42:26  InnoDB: Database was not shut down normally! 
> > InnoDB: Starting crash recovery. 
> > InnoDB: Reading tablespace information from the .ibd files... 
> > InnoDB: Restoring possible half-written data pages from the doublewrite 
> > InnoDB: buffer... 
> > InnoDB: Doing recovery: scanned up to log sequence number 15286943950 
> > InnoDB: Transaction 14FBF4A4 was in the XA prepared state. 
> > InnoDB: 1 transaction(s) which must be rolled back or cleaned up 
> > InnoDB: in total 0 row operations to undo 
> > InnoDB: Trx id counter is 14FBF600 
> > 120731 11:42:26  InnoDB: Starting an apply batch of log records to the 
> > database... 
> > InnoDB: Progress in percents: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 
> 19 
> > 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 
> 44 
> > 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 
> 69 
> > 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 
> 94 
> > 95 96 97 98 99 
> > InnoDB: Apply batch completed 
> > InnoDB: Starting in background the rollback of uncommitted transactions 
> > 120731 11:42:26  InnoDB: Rollback of non-prepared transactions completed 
> > 120731 11:42:26  InnoDB: Waiting for the background threads to start 
> > 120731 11:42:27 InnoDB: 1.1.8 started; log sequence number 15286943950 
> > 120731 11:42:27  InnoDB: Starting recovery for XA transactions... 
> > 120731 11:42:27  InnoDB: Transaction 14FBF4A4 in prepared state after 
> > recovery 
> > 120731 11:42:27  InnoDB: Transaction contains changes to 1 rows 
> > 120731 11:42:27  InnoDB: 1 transactions in prepared state after recovery 
> > 120731 11:42:27 [Note] Found 1 prepared transaction(s) in InnoDB 
> > 120731 11:42:27 [Note] Event Scheduler: Loaded 0 events 
> > 120731 11:42:27 [Note] /usr/sbin/mysqld: ready for connections. 
> > Version: '5.5.20'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306 
> >  Source distribution, wsrep_23.4.r3713 
> > 120731 11:42:27 [Note] WSREP: wsrep_notify_cmd is not defined, skipping 
> > notification. 
> > 120731 11:42:27 [Note] WSREP: Assign initial position for certification: 
> 0, 
> > protocol version: 2 
> > 120731 11:42:27 [Note] WSREP: Synchronized with group, ready for 
> connections 
> > 120731 11:42:27 [Note] WSREP: wsrep_notify_cmd is not defined, skipping 
> > notification.* 
> > 
> > 
> > On Monday, July 30, 2012 4:51:32 PM UTC-5, Seppo Jaakola wrote: 
> >> 
> >> Can you show some more log before the crash? 
> >> 
> >> The problem looks to relate to foreign key constraints, can you 
> >> identify which tables were involved here? If you can spot the tables, 
> >> show the table definition of parent and child table by "SHOW CREATE 
> >> TABLE ..." 
> >> It may be that the foreign key is considerably long column. 
> >> 
> >> -seppo 
> >> 
> >> Quoting jdf <jdfm...@gmail.com>: 
> >> 
> >> > Hello, 
> >> > 
> >> > We just migrated from a single mysql server, to a galera. Currently 
> we 
> >> have 
> >> > two servers with MySQL 5.5.23 & Galera 23.2.1 setup. They worked 
> great 
> >> for 
> >> > about a week or so, until today the cluster crashed. Restarting the 
> >> primary 
> >> > instance brought everything back up so far. 
> >> > 
> >> > Can someone please assist me in determining what caused this? Thanks 
> in 
> >> > advance. 
> >> > 
> >> > 
> >> > Below is from the error.log 
> >> > 
> >> > 
> >> > 120730 11:05:02 [ERROR] WSREP: FK key set failed: 11 
> >> > InnoDB: unknown error code 11 
> >> > 120730 11:05:02  InnoDB: Assertion failure in thread 139677169891072 
> in 
> >> > file row0mysql.c line 649 
> >> > InnoDB: We intentionally generate a memory trap. 
> >> > InnoDB: Submit a detailed bug report to http://bugs.mysql.com. 
> >> > InnoDB: If you get repeated assertion failures or crashes, even 
> >> > InnoDB: immediately after the mysqld startup, there may be 
> >> > InnoDB: corruption in the InnoDB tablespace. Please refer to 
> >> > InnoDB: 
> >> http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html 
> >> > InnoDB: about forcing recovery. 
> >> > 16:05:02 UTC - mysqld got signal 6 ; 
> >> > This could be because you hit a bug. It is also possible that this 
> >> binary 
> >> > or one of the libraries it was linked against is corrupt, improperly 
> >> built, 
> >> > or misconfigured. This error can also be caused by malfunctioning 
> >> hardware. 
> >> > We will try our best to scrape up some info that will hopefully help 
> >> > diagnose the problem, but since we have already crashed, 
> >> > something is definitely wrong and this may fail. 
> >> > 
> >> > key_buffer_size=16777216 
> >> > read_buffer_size=131072 
> >> > max_used_connections=114 
> >> > max_threads=151 
> >> > thread_count=7 
> >> > connection_count=7 
> >> > It is possible that mysqld could use up to 
> >> > key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 
> >> > 346734 K  bytes of memory 
> >> > Hope that's ok; if not, decrease some variables in the equation. 
> >> > Thread pointer: 0xac070b0 
> >> > Attempting backtrace. You can use the following information to find 
> out 
> >> > where mysqld died. If you see no messages after this, something went 
> >> > terribly wrong... 
> >> > stack_bottom = 7f0920182e68 thread_stack 0x30000 
> >> > /usr/sbin/mysqld(my_print_stacktrace+0x35)[0x820a15] 
> >> > /usr/sbin/mysqld(handle_fatal_signal+0x36a)[0x69866a] 
> >> > /lib/libpthread.so.0(+0xf8f0)[0x7f09323f58f0] 
> >> > /lib/libc.so.6(gsignal+0x35)[0x7f09313b5a75] 
> >> > /lib/libc.so.6(abort+0x180)[0x7f09313b95c0] 
> >> > /usr/sbin/mysqld[0x848c0b] 
> >> > /usr/sbin/mysqld[0x84b1d4] 
> >> > /usr/sbin/mysqld[0x835c13] 
> >> > /usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0x68)[0x69d6f8] 
> >> > 
> >> 
> /usr/sbin/mysqld(_Z12write_recordP3THDP5TABLEP12st_copy_info+0x5b)[0x572bfb] 
>
> >> 
> >> > 
> >> 
> /usr/sbin/mysqld(_Z12mysql_insertP3THDP10TABLE_LISTR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb+0xa46)[0x579506] 
>
> >> 
> >> > /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x222f)[0x58bc7f] 
> >> > 
> /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0xfa)[0x58e94a] 
> >> > 
> >> 
> /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1eff)[0x5917df] 
>
> >> 
> >> > /usr/sbin/mysqld(_Z10do_commandP3THD+0x1b3)[0x592673] 
> >> > /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x2c0)[0x62b230] 
> >> > /usr/sbin/mysqld(handle_one_connection+0x4c)[0x62b2ac] 
> >> > /lib/libpthread.so.0(+0x69ca)[0x7f09323ec9ca] 
> >> > /lib/libc.so.6(clone+0x6d)[0x7f0931468cdd] 
> >> > 
> >> > Trying to get some variables. 
> >> > Some pointers may be invalid and cause the dump to abort. 
> >> > Query (7f08e47e96f0): is an invalid pointer 
> >> > Connection ID (thread ID): 1210755 
> >> > Status: NOT_KILLED 
> >> > 
> >> > 
> >> 6 
> >> 
> >> 
> > 
>
>
>
------=_Part_1121_29705786.1343770389730
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<div>mysql&gt; show create table sales_flat_order_item \G;</div><div>******=
********************* 1. row ***************************</div><div>&nbsp; &=
nbsp; &nbsp; &nbsp;Table: sales_flat_order_item</div><div>Create Table: CRE=
ATE TABLE `sales_flat_order_item` (</div><div>&nbsp; `item_id` int(10) unsi=
gned NOT NULL AUTO_INCREMENT,</div><div>&nbsp; `order_id` int(10) unsigned =
NOT NULL DEFAULT '0',</div><div>&nbsp; `parent_item_id` int(10) unsigned DE=
FAULT NULL,</div><div>&nbsp; `quote_item_id` int(10) unsigned DEFAULT NULL,=
</div><div>&nbsp; `store_id` smallint(5) unsigned DEFAULT NULL,</div><div>&=
nbsp; `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',</div><d=
iv>&nbsp; `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',</di=
v><div>&nbsp; `product_id` int(10) unsigned DEFAULT NULL,</div><div>&nbsp; =
`product_type` varchar(255) DEFAULT NULL,</div><div>&nbsp; `product_options=
` text,</div><div>&nbsp; `weight` decimal(12,4) DEFAULT '0.0000',</div><div=
>&nbsp; `is_virtual` tinyint(1) unsigned DEFAULT NULL,</div><div>&nbsp; `sk=
u` varchar(255) NOT NULL DEFAULT '',</div><div>&nbsp; `name` varchar(255) D=
EFAULT NULL,</div><div>&nbsp; `description` text,</div><div>&nbsp; `applied=
_rule_ids` text,</div><div>&nbsp; `additional_data` text,</div><div>&nbsp; =
`free_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0',</div><div>&nbsp; =
`is_qty_decimal` tinyint(1) unsigned DEFAULT NULL,</div><div>&nbsp; `no_dis=
count` tinyint(1) unsigned DEFAULT '0',</div><div>&nbsp; `qty_backordered` =
decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `qty_canceled` decimal(12,=
4) DEFAULT '0.0000',</div><div>&nbsp; `qty_invoiced` decimal(12,4) DEFAULT =
'0.0000',</div><div>&nbsp; `qty_ordered` decimal(12,4) DEFAULT '0.0000',</d=
iv><div>&nbsp; `qty_refunded` decimal(12,4) DEFAULT '0.0000',</div><div>&nb=
sp; `qty_shipped` decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `base_co=
st` decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `price` decimal(12,4) =
NOT NULL DEFAULT '0.0000',</div><div>&nbsp; `base_price` decimal(12,4) NOT =
NULL DEFAULT '0.0000',</div><div>&nbsp; `original_price` decimal(12,4) DEFA=
ULT NULL,</div><div>&nbsp; `base_original_price` decimal(12,4) DEFAULT NULL=
,</div><div>&nbsp; `tax_percent` decimal(12,4) DEFAULT '0.0000',</div><div>=
&nbsp; `tax_amount` decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `base_=
tax_amount` decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `tax_invoiced`=
 decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `base_tax_invoiced` decim=
al(12,4) DEFAULT '0.0000',</div><div>&nbsp; `discount_percent` decimal(12,4=
) DEFAULT '0.0000',</div><div>&nbsp; `discount_amount` decimal(12,4) DEFAUL=
T '0.0000',</div><div>&nbsp; `base_discount_amount` decimal(12,4) DEFAULT '=
0.0000',</div><div>&nbsp; `discount_invoiced` decimal(12,4) DEFAULT '0.0000=
',</div><div>&nbsp; `base_discount_invoiced` decimal(12,4) DEFAULT '0.0000'=
,</div><div>&nbsp; `amount_refunded` decimal(12,4) DEFAULT '0.0000',</div><=
div>&nbsp; `base_amount_refunded` decimal(12,4) DEFAULT '0.0000',</div><div=
>&nbsp; `row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',</div><div>&nbs=
p; `base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',</div><div>&nbs=
p; `row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',</div><div>&nbsp;=
 `base_row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',</div><div>&nb=
sp; `row_weight` decimal(12,4) DEFAULT '0.0000',</div><div>&nbsp; `gift_mes=
sage_id` int(10) DEFAULT NULL,</div><div>&nbsp; `gift_message_available` in=
t(10) DEFAULT NULL,</div><div>&nbsp; `base_tax_before_discount` decimal(12,=
4) DEFAULT NULL,</div><div>&nbsp; `tax_before_discount` decimal(12,4) DEFAU=
LT NULL,</div><div>&nbsp; `ext_order_item_id` varchar(255) DEFAULT NULL,</d=
iv><div>&nbsp; `weee_tax_applied` text,</div><div>&nbsp; `weee_tax_applied_=
amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `weee_tax_applied_row_=
amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_weee_tax_applied=
_amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_weee_tax_applie=
d_row_amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `weee_tax_dispos=
ition` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `weee_tax_row_dispositi=
on` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_weee_tax_disposition=
` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_weee_tax_row_dispositi=
on` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `locked_do_invoice` tinyin=
t(1) unsigned DEFAULT NULL,</div><div>&nbsp; `locked_do_ship` tinyint(1) un=
signed DEFAULT NULL,</div><div>&nbsp; `price_incl_tax` decimal(12,4) DEFAUL=
T NULL,</div><div>&nbsp; `base_price_incl_tax` decimal(12,4) DEFAULT NULL,<=
/div><div>&nbsp; `row_total_incl_tax` decimal(12,4) DEFAULT NULL,</div><div=
>&nbsp; `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL,</div><div>&nb=
sp; `hidden_tax_amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_=
hidden_tax_amount` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `hidden_tax=
_invoiced` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_hidden_tax_in=
voiced` decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `hidden_tax_refunded` =
decimal(12,4) DEFAULT NULL,</div><div>&nbsp; `base_hidden_tax_refunded` dec=
imal(12,4) DEFAULT NULL,</div><div>&nbsp; `is_nominal` int(11) NOT NULL DEF=
AULT '0',</div><div>&nbsp; PRIMARY KEY (`item_id`),</div><div>&nbsp; KEY `I=
DX_ORDER` (`order_id`),</div><div>&nbsp; KEY `IDX_STORE_ID` (`store_id`),</=
div><div>&nbsp; CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_PARENT` FOREIGN KEY (`=
order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON=
 UPDATE CASCADE,</div><div>&nbsp; CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_STOR=
E` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE =
SET NULL ON UPDATE CASCADE</div><div>) ENGINE=3DInnoDB AUTO_INCREMENT=3D380=
8 DEFAULT CHARSET=3Dutf8</div><div>1 row in set (0.00 sec)</div><br>On Tues=
day, July 31, 2012 4:26:47 PM UTC-5, Seppo Jaakola wrote:<blockquote class=
=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #cc=
c solid;padding-left: 1ex;">Looks like we have worked with similar issue be=
fore. Can you please &nbsp;
<br>send the output of:
<br>mysql&gt; SHOW CREATE TABLE sales_flat_order_item;
<br>
<br>
<br>-seppo
<br>
<br>Quoting jdf &lt;<a href=3D"mailto:jdfm...@gmail.com" target=3D"_blank">=
jdfm...@gmail.com</a>&gt;:
<br>
<br>&gt; It appears one of our customers who uses Magento is causing this:
<br>&gt;
<br>&gt;
<br>&gt; *InnoDB: Error: record has 4411 fields
<br>&gt; InnoDB: Error: record has 0 fields
<br>&gt; WSREP: FK key len exceeded 0 16926752 3500
<br>&gt; 120731 11:42:25 [ERROR] WSREP: FK key set failed: 11
<br>&gt; InnoDB: unknown error code 11
<br>&gt; 120731 11:42:25 &nbsp;InnoDB: Assertion failure in thread 13983646=
4727808 in
<br>&gt; file row0mysql.c line 649
<br>&gt; InnoDB: We intentionally generate a memory trap.
<br>&gt; InnoDB: Submit a detailed bug report to <a href=3D"http://bugs.mys=
ql.com" target=3D"_blank">http://bugs.mysql.com</a>.
<br>&gt; InnoDB: If you get repeated assertion failures or crashes, even
<br>&gt; InnoDB: immediately after the mysqld startup, there may be
<br>&gt; InnoDB: corruption in the InnoDB tablespace. Please refer to
<br>&gt; InnoDB: <a href=3D"http://dev.mysql.com/doc/refman/5.5/en/forcing-=
innodb-recovery.html" target=3D"_blank">http://dev.mysql.com/doc/<wbr>refma=
n/5.5/en/forcing-innodb-<wbr>recovery.html</a>
<br>&gt; InnoDB: about forcing recovery.
<br>&gt; 16:42:25 UTC - mysqld got signal 6 ;
<br>&gt; This could be because you hit a bug. It is also possible that this=
 binary
<br>&gt; or one of the libraries it was linked against is corrupt, improper=
ly built,
<br>&gt; or misconfigured. This error can also be caused by malfunctioning =
hardware.
<br>&gt; We will try our best to scrape up some info that will hopefully he=
lp
<br>&gt; diagnose the problem, but since we have already crashed,
<br>&gt; something is definitely wrong and this may fail.
<br>&gt;
<br>&gt; key_buffer_size=3D67108864
<br>&gt; read_buffer_size=3D131072
<br>&gt; max_used_connections=3D24
<br>&gt; max_threads=3D1024
<br>&gt; thread_count=3D13
<br>&gt; connection_count=3D13
<br>&gt; It is possible that mysqld could use up to
<br>&gt; key_buffer_size + (read_buffer_size + sort_buffer_size)*max_thread=
s =3D
<br>&gt; 2305792 K &nbsp;bytes of memory
<br>&gt; Hope that's ok; if not, decrease some variables in the equation.
<br>&gt;
<br>&gt; Thread pointer: 0x7f2e2434fa80
<br>&gt; Attempting backtrace. You can use the following information to fin=
d out
<br>&gt; where mysqld died. If you see no messages after this, something we=
nt
<br>&gt; terribly wrong...
<br>&gt; stack_bottom =3D 7f2e36ce7e68 thread_stack 0x30000
<br>&gt; /usr/sbin/mysqld(my_print_<wbr>stacktrace+0x35)[0x820a15]
<br>&gt; /usr/sbin/mysqld(handle_fatal_<wbr>signal+0x36a)[0x69866a]
<br>&gt; /lib/libpthread.so.0(+0xf8f0)[<wbr>0x7f2e7c0c58f0]
<br>&gt; /lib/libc.so.6(gsignal+0x35)[<wbr>0x7f2e7b085a75]
<br>&gt; /lib/libc.so.6(abort+0x180)[<wbr>0x7f2e7b0895c0]
<br>&gt; /usr/sbin/mysqld[0x848c0b]
<br>&gt; /usr/sbin/mysqld[0x84b1d4]
<br>&gt; /usr/sbin/mysqld[0x835c13]
<br>&gt; /usr/sbin/mysqld(_<wbr>ZN7handler12ha_write_rowEPh+<wbr>0x68)[0x69=
d6f8]
<br>&gt; /usr/sbin/mysqld(_Z12write_<wbr>recordP3THDP5TABLEP12st_copy_<wbr>=
info+0x5b)[0x572bfb]
<br>&gt; /usr/sbin/mysqld(_Z12mysql_<wbr>insertP3THDP10TABLE_<wbr>LISTR4Lis=
tI4ItemERS3_IS5_ES6_<wbr>S6_15enum_duplicatesb+0xa46)[<wbr>0x579506]
<br>&gt; /usr/sbin/mysqld(_Z21mysql_<wbr>execute_commandP3THD+0x222f)[<wbr>=
0x58bc7f]
<br>&gt; /usr/sbin/mysqld(_Z11mysql_<wbr>parseP3THDPcjP12Parser_state+<wbr>=
0xfa)[0x58e94a]
<br>&gt; /usr/sbin/mysqld(_Z16dispatch_<wbr>command19enum_server_<wbr>comma=
ndP3THDPcj+0x1eff)[<wbr>0x5917df]
<br>&gt; /usr/sbin/mysqld(_Z10do_<wbr>commandP3THD+0x1b3)[0x592673]
<br>&gt; /usr/sbin/mysqld(_Z24do_<wbr>handle_one_connectionP3THD+<wbr>0x2c0=
)[0x62b230]
<br>&gt; /usr/sbin/mysqld(handle_one_<wbr>connection+0x4c)[0x62b2ac]
<br>&gt; /lib/libpthread.so.0(+0x69ca)[<wbr>0x7f2e7c0bc9ca]
<br>&gt; /lib/libc.so.6(clone+0x6d)[<wbr>0x7f2e7b138cdd]
<br>&gt;
<br>&gt; Trying to get some variables.
<br>&gt; Some pointers may be invalid and cause the dump to abort.
<br>&gt; Query (28161a0): INSERT INTO `sales_flat_order_item` (`order_id`,
<br>&gt; `quote_item_id`, `store_id`, `created_at`, `updated_at`, `product_=
id`,
<br>&gt; `product_type`, `product_options`, `weight`, `is_virtual`, `sku`, =
`name`,
<br>&gt; `description`, `applied_rule_ids`, `additional_data`, `is_qty_deci=
mal`,
<br>&gt; `qty_backordered`, `qty_ordered`, `base_cost`, `price`, `base_pric=
e`,
<br>&gt; `original_price`, `base_original_price`, `tax_percent`, `tax_amoun=
t`,
<br>&gt; `base_tax_amount`, `discount_percent`, `discount_amount`,
<br>&gt; `base_discount_amount`, `row_total`, `base_row_total`, `row_weight=
`,
<br>&gt; `gift_message_id`, `gift_message_available`, `base_tax_before_disc=
ount`,
<br>&gt; `tax_before_discount`, `weee_tax_applied`, `weee_tax_applied_amoun=
t`,
<br>&gt; `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`<wbr>=
,
<br>&gt; `base_weee_tax_applied_row_<wbr>amount`, `weee_tax_disposition`,
<br>&gt; `weee_tax_row_disposition`, `base_weee_tax_disposition`,
<br>&gt; `base_weee_tax_row_<wbr>disposition`, `price_incl_tax`, `base_pric=
e_incl_tax`,
<br>&gt; `row_total_incl_tax`, `base_row_total_incl_tax`, `hidden_tax_amoun=
t`,
<br>&gt; `base_hidden_tax_amount`
<br>&gt; Connection ID (thread ID): 27979
<br>&gt; Status: NOT_KILLED
<br>&gt;
<br>&gt; The manual page at <a href=3D"http://dev.mysql.com/doc/mysql/en/cr=
ashing.html" target=3D"_blank">http://dev.mysql.com/doc/<wbr>mysql/en/crash=
ing.html</a> contains
<br>&gt; information that should help you find out what is causing the cras=
h.
<br>&gt; 120731 11:42:26 [Note] WSREP: wsrep_load(): loading provider libra=
ry
<br>&gt; '/usr/lib/galera/libgalera_<wbr>smm.so'
<br>&gt; 120731 11:42:26 [Note] WSREP: wsrep_load(): Galera 23.2.0(r120) by
<br>&gt; Codership Oy &lt;<a href=3D"mailto:i...@codership.com" target=3D"_=
blank">i...@codership.com</a>&gt; loaded succesfully.
<br>&gt; 120731 11:42:26 [Note] WSREP: Reusing existing
<br>&gt; '/var/lib/mysql//galera.cache'<wbr>.
<br>&gt; 120731 11:42:26 [Note] WSREP: Passing config to GCS: gcache.dir =
=3D
<br>&gt; /var/lib/mysql/; gcache.keep_pages_size =3D 0; gcache.mem_size =3D=
 0;
<br>&gt; <a href=3D"http://gcache.name" target=3D"_blank">gcache.name</a> =
=3D /var/lib/mysql//galera.cache; gcache.page_size =3D 128M;
<br>&gt; gcache.size =3D 128M; gcs.fc_debug =3D 0; gcs.fc_factor =3D 0.5; g=
cs.fc_limit =3D
<br>&gt; 16; gcs.fc_master_slave =3D NO; gcs.max_packet_size =3D 64500; gcs=
.max_throttle
<br>&gt; =3D 0.25; gcs.recv_q_hard_limit =3D 9223372036854775807; gcs.recv_=
q_soft_limit
<br>&gt; =3D 0.25; replicator.causal_read_timeout =3D PT30S; replicator.com=
mit_order =3D 3
<br>&gt; 120731 11:42:26 [Note] WSREP: wsrep_sst_grab()
<br>&gt; 120731 11:42:26 [Note] WSREP: Start replication
<br>&gt; 120731 11:42:26 [Note] WSREP: Found saved state:
<br>&gt; 00000000-0000-0000-0000-<wbr>000000000000:-1
<br>&gt; 120731 11:42:26 [Note] WSREP: Assign initial position for certific=
ation:
<br>&gt; -1, protocol version: -1
<br>&gt; 120731 11:42:26 [Note] WSREP: Setting initial position to
<br>&gt; 00000000-0000-0000-0000-<wbr>000000000000:-1
<br>&gt; 120731 11:42:26 [Note] WSREP: protonet asio version 0
<br>&gt; 120731 11:42:26 [Note] WSREP: backend: asio
<br>&gt; 120731 11:42:26 [Note] WSREP: GMCast version 0
<br>&gt; 120731 11:42:26 [Note] WSREP: (b5ada0cd-db2e-11e1-0800-<wbr>febf68=
ff291f,
<br>&gt; 'tcp://<a href=3D"http://0.0.0.0:4567" target=3D"_blank">0.0.0.0:4=
567</a>') listening at tcp://<a href=3D"http://0.0.0.0:4567" target=3D"_bla=
nk">0.0.0.0:4567</a>
<br>&gt; 120731 11:42:26 [Note] WSREP: (b5ada0cd-db2e-11e1-0800-<wbr>febf68=
ff291f,
<br>&gt; 'tcp://<a href=3D"http://0.0.0.0:4567" target=3D"_blank">0.0.0.0:4=
567</a>') multicast: , ttl: 1
<br>&gt; 120731 11:42:26 [Note] WSREP: EVS version 0
<br>&gt; 120731 11:42:26 [Note] WSREP: PC version 0
<br>&gt; 120731 11:42:26 [Note] WSREP: gcomm: connecting to group
<br>&gt; 'my_wsrep_cluster', peer ''
<br>&gt; 120731 11:42:26 [Note] WSREP: GMCast::handle_stable_view:
<br>&gt; view(view_id(PRIM,b5ada0cd-<wbr>db2e-11e1-0800-febf68ff291f,1) mem=
b {
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;b5ada0cd-db2e-11e1-0800-<wbr>febf68ff29=
1f,
<br>&gt; } joined {
<br>&gt; } left {
<br>&gt; } partitioned {
<br>&gt; })
<br>&gt; 120731 11:42:26 [Note] WSREP: gcomm: connected
<br>&gt; 120731 11:42:26 [Note] WSREP: Changing maximum packet size to 6450=
0,
<br>&gt; resulting msg size: 32636
<br>&gt; 120731 11:42:26 [Note] WSREP: Shifting CLOSED -&gt; OPEN (TO: 0)
<br>&gt; 120731 11:42:26 [Note] WSREP: Opened channel 'my_wsrep_cluster'
<br>&gt; 120731 11:42:26 [Note] WSREP: New COMPONENT: primary =3D yes, my_i=
dx =3D 0,
<br>&gt; memb_num =3D 1
<br>&gt; 120731 11:42:26 [Note] WSREP: Waiting for SST to complete.
<br>&gt; 120731 11:42:26 [Note] WSREP: Starting new group from scratch:
<br>&gt; b5ae0d77-db2e-11e1-0800-<wbr>d2e9aa1e82bd
<br>&gt; 120731 11:42:26 [Note] WSREP: STATE_EXCHANGE: sent state UUID:
<br>&gt; b5ae23e6-db2e-11e1-0800-<wbr>3bf856ec120f
<br>&gt; 120731 11:42:26 [Note] WSREP: STATE EXCHANGE: sent state msg:
<br>&gt; b5ae23e6-db2e-11e1-0800-<wbr>3bf856ec120f
<br>&gt; 120731 11:42:26 [Note] WSREP: STATE EXCHANGE: got state msg:
<br>&gt; b5ae23e6-db2e-11e1-0800-<wbr>3bf856ec120f from 0 (db02.dal01)
<br>&gt; 120731 11:42:26 [Note] WSREP: Quorum results:
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;version &nbsp; &nbsp;=3D 2,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;component &nbsp;=3D PRIMARY,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;conf_id &nbsp; &nbsp;=3D 0,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;members &nbsp; &nbsp;=3D 1/1 (joined/to=
tal),
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;act_id &nbsp; &nbsp; =3D 0,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;last_appl. =3D -1,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;protocols &nbsp;=3D 0/3/1 (gcs/repl/app=
l),
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;group UUID =3D b5ae0d77-db2e-11e1-0800-=
<wbr>d2e9aa1e82bd
<br>&gt; 120731 11:42:26 [Note] WSREP: Flow-control interval: [8, 16]
<br>&gt; 120731 11:42:26 [Note] WSREP: Restored state OPEN -&gt; JOINED (0)
<br>&gt; 120731 11:42:26 [Note] WSREP: Member 0 (db02.dal01) synced with gr=
oup.
<br>&gt; 120731 11:42:26 [Note] WSREP: Shifting JOINED -&gt; SYNCED (TO: 0)
<br>&gt; 120731 11:42:26 [Note] WSREP: New cluster view: global state:
<br>&gt; b5ae0d77-db2e-11e1-0800-<wbr>d2e9aa1e82bd:0, view# 1: Primary, num=
ber of nodes:
<br>&gt; 1, my index: 0, protocol version 1
<br>&gt; 120731 11:42:26 [Note] WSREP: SST complete, seqno: 0
<br>&gt; 120731 11:42:26 InnoDB: The InnoDB memory heap is disabled
<br>&gt; 120731 11:42:26 InnoDB: Mutexes and rw_locks use GCC atomic builti=
ns
<br>&gt; 120731 11:42:26 InnoDB: Compressed tables use zlib 1.2.3.3
<br>&gt; 120731 11:42:26 InnoDB: Using Linux native AIO
<br>&gt; 120731 11:42:26 InnoDB: Initializing buffer pool, size =3D 128.0M
<br>&gt; 120731 11:42:26 InnoDB: Completed initialization of buffer pool
<br>&gt; 120731 11:42:26 InnoDB: highest supported file format is Barracuda=
.
<br>&gt; InnoDB: Log scan progressed past the checkpoint lsn 15286934250
<br>&gt; 120731 11:42:26 &nbsp;InnoDB: Database was not shut down normally!
<br>&gt; InnoDB: Starting crash recovery.
<br>&gt; InnoDB: Reading tablespace information from the .ibd files...
<br>&gt; InnoDB: Restoring possible half-written data pages from the double=
write
<br>&gt; InnoDB: buffer...
<br>&gt; InnoDB: Doing recovery: scanned up to log sequence number 15286943=
950
<br>&gt; InnoDB: Transaction 14FBF4A4 was in the XA prepared state.
<br>&gt; InnoDB: 1 transaction(s) which must be rolled back or cleaned up
<br>&gt; InnoDB: in total 0 row operations to undo
<br>&gt; InnoDB: Trx id counter is 14FBF600
<br>&gt; 120731 11:42:26 &nbsp;InnoDB: Starting an apply batch of log recor=
ds to the
<br>&gt; database...
<br>&gt; InnoDB: Progress in percents: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16=
 17 18 19
<br>&gt; 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 =
42 43 44
<br>&gt; 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 =
67 68 69
<br>&gt; 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 =
92 93 94
<br>&gt; 95 96 97 98 99
<br>&gt; InnoDB: Apply batch completed
<br>&gt; InnoDB: Starting in background the rollback of uncommitted transac=
tions
<br>&gt; 120731 11:42:26 &nbsp;InnoDB: Rollback of non-prepared transaction=
s completed
<br>&gt; 120731 11:42:26 &nbsp;InnoDB: Waiting for the background threads t=
o start
<br>&gt; 120731 11:42:27 InnoDB: 1.1.8 started; log sequence number 1528694=
3950
<br>&gt; 120731 11:42:27 &nbsp;InnoDB: Starting recovery for XA transaction=
s...
<br>&gt; 120731 11:42:27 &nbsp;InnoDB: Transaction 14FBF4A4 in prepared sta=
te after
<br>&gt; recovery
<br>&gt; 120731 11:42:27 &nbsp;InnoDB: Transaction contains changes to 1 ro=
ws
<br>&gt; 120731 11:42:27 &nbsp;InnoDB: 1 transactions in prepared state aft=
er recovery
<br>&gt; 120731 11:42:27 [Note] Found 1 prepared transaction(s) in InnoDB
<br>&gt; 120731 11:42:27 [Note] Event Scheduler: Loaded 0 events
<br>&gt; 120731 11:42:27 [Note] /usr/sbin/mysqld: ready for connections.
<br>&gt; Version: '5.5.20' &nbsp;socket: '/var/run/mysqld/mysqld.sock' &nbs=
p;port: 3306
<br>&gt; &nbsp;Source distribution, wsrep_23.4.r3713
<br>&gt; 120731 11:42:27 [Note] WSREP: wsrep_notify_cmd is not defined, ski=
pping
<br>&gt; notification.
<br>&gt; 120731 11:42:27 [Note] WSREP: Assign initial position for certific=
ation: 0,
<br>&gt; protocol version: 2
<br>&gt; 120731 11:42:27 [Note] WSREP: Synchronized with group, ready for c=
onnections
<br>&gt; 120731 11:42:27 [Note] WSREP: wsrep_notify_cmd is not defined, ski=
pping
<br>&gt; notification.*
<br>&gt;
<br>&gt;
<br>&gt; On Monday, July 30, 2012 4:51:32 PM UTC-5, Seppo Jaakola wrote:
<br>&gt;&gt;
<br>&gt;&gt; Can you show some more log before the crash?
<br>&gt;&gt;
<br>&gt;&gt; The problem looks to relate to foreign key constraints, can yo=
u
<br>&gt;&gt; identify which tables were involved here? If you can spot the =
tables,
<br>&gt;&gt; show the table definition of parent and child table by "SHOW C=
REATE
<br>&gt;&gt; TABLE ..."
<br>&gt;&gt; It may be that the foreign key is considerably long column.
<br>&gt;&gt;
<br>&gt;&gt; -seppo
<br>&gt;&gt;
<br>&gt;&gt; Quoting jdf &lt;<a href=3D"mailto:jdfm...@gmail.com" target=3D=
"_blank">jdfm...@gmail.com</a>&gt;:
<br>&gt;&gt;
<br>&gt;&gt; &gt; Hello,
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; We just migrated from a single mysql server, to a galera.=
 Currently we
<br>&gt;&gt; have
<br>&gt;&gt; &gt; two servers with MySQL 5.5.23 &amp; Galera 23.2.1 setup. =
They worked great
<br>&gt;&gt; for
<br>&gt;&gt; &gt; about a week or so, until today the cluster crashed. Rest=
arting the
<br>&gt;&gt; primary
<br>&gt;&gt; &gt; instance brought everything back up so far.
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; Can someone please assist me in determining what caused t=
his? Thanks in
<br>&gt;&gt; &gt; advance.
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; Below is from the error.log
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; 120730 11:05:02 [ERROR] WSREP: FK key set failed: 11
<br>&gt;&gt; &gt; InnoDB: unknown error code 11
<br>&gt;&gt; &gt; 120730 11:05:02 &nbsp;InnoDB: Assertion failure in thread=
 139677169891072 in
<br>&gt;&gt; &gt; file row0mysql.c line 649
<br>&gt;&gt; &gt; InnoDB: We intentionally generate a memory trap.
<br>&gt;&gt; &gt; InnoDB: Submit a detailed bug report to <a href=3D"http:/=
/bugs.mysql.com" target=3D"_blank">http://bugs.mysql.com</a>.
<br>&gt;&gt; &gt; InnoDB: If you get repeated assertion failures or crashes=
, even
<br>&gt;&gt; &gt; InnoDB: immediately after the mysqld startup, there may b=
e
<br>&gt;&gt; &gt; InnoDB: corruption in the InnoDB tablespace. Please refer=
 to
<br>&gt;&gt; &gt; InnoDB:
<br>&gt;&gt; <a href=3D"http://dev.mysql.com/doc/refman/5.5/en/forcing-inno=
db-recovery.html" target=3D"_blank">http://dev.mysql.com/doc/<wbr>refman/5.=
5/en/forcing-innodb-<wbr>recovery.html</a>
<br>&gt;&gt; &gt; InnoDB: about forcing recovery.
<br>&gt;&gt; &gt; 16:05:02 UTC - mysqld got signal 6 ;
<br>&gt;&gt; &gt; This could be because you hit a bug. It is also possible =
that this
<br>&gt;&gt; binary
<br>&gt;&gt; &gt; or one of the libraries it was linked against is corrupt,=
 improperly
<br>&gt;&gt; built,
<br>&gt;&gt; &gt; or misconfigured. This error can also be caused by malfun=
ctioning
<br>&gt;&gt; hardware.
<br>&gt;&gt; &gt; We will try our best to scrape up some info that will hop=
efully help
<br>&gt;&gt; &gt; diagnose the problem, but since we have already crashed,
<br>&gt;&gt; &gt; something is definitely wrong and this may fail.
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; key_buffer_size=3D16777216
<br>&gt;&gt; &gt; read_buffer_size=3D131072
<br>&gt;&gt; &gt; max_used_connections=3D114
<br>&gt;&gt; &gt; max_threads=3D151
<br>&gt;&gt; &gt; thread_count=3D7
<br>&gt;&gt; &gt; connection_count=3D7
<br>&gt;&gt; &gt; It is possible that mysqld could use up to
<br>&gt;&gt; &gt; key_buffer_size + (read_buffer_size + sort_buffer_size)*m=
ax_threads =3D
<br>&gt;&gt; &gt; 346734 K &nbsp;bytes of memory
<br>&gt;&gt; &gt; Hope that's ok; if not, decrease some variables in the eq=
uation.
<br>&gt;&gt; &gt; Thread pointer: 0xac070b0
<br>&gt;&gt; &gt; Attempting backtrace. You can use the following informati=
on to find out
<br>&gt;&gt; &gt; where mysqld died. If you see no messages after this, som=
ething went
<br>&gt;&gt; &gt; terribly wrong...
<br>&gt;&gt; &gt; stack_bottom =3D 7f0920182e68 thread_stack 0x30000
<br>&gt;&gt; &gt; /usr/sbin/mysqld(my_print_<wbr>stacktrace+0x35)[0x820a15]
<br>&gt;&gt; &gt; /usr/sbin/mysqld(handle_fatal_<wbr>signal+0x36a)[0x69866a=
]
<br>&gt;&gt; &gt; /lib/libpthread.so.0(+0xf8f0)[<wbr>0x7f09323f58f0]
<br>&gt;&gt; &gt; /lib/libc.so.6(gsignal+0x35)[<wbr>0x7f09313b5a75]
<br>&gt;&gt; &gt; /lib/libc.so.6(abort+0x180)[<wbr>0x7f09313b95c0]
<br>&gt;&gt; &gt; /usr/sbin/mysqld[0x848c0b]
<br>&gt;&gt; &gt; /usr/sbin/mysqld[0x84b1d4]
<br>&gt;&gt; &gt; /usr/sbin/mysqld[0x835c13]
<br>&gt;&gt; &gt; /usr/sbin/mysqld(_<wbr>ZN7handler12ha_write_rowEPh+<wbr>0=
x68)[0x69d6f8]
<br>&gt;&gt; &gt;
<br>&gt;&gt; /usr/sbin/mysqld(_Z12write_<wbr>recordP3THDP5TABLEP12st_copy_<=
wbr>info+0x5b)[0x572bfb]
<br>&gt;&gt;
<br>&gt;&gt; &gt;
<br>&gt;&gt; /usr/sbin/mysqld(_Z12mysql_<wbr>insertP3THDP10TABLE_<wbr>LISTR=
4ListI4ItemERS3_IS5_ES6_<wbr>S6_15enum_duplicatesb+0xa46)[<wbr>0x579506]
<br>&gt;&gt;
<br>&gt;&gt; &gt; /usr/sbin/mysqld(_Z21mysql_<wbr>execute_commandP3THD+0x22=
2f)[<wbr>0x58bc7f]
<br>&gt;&gt; &gt; /usr/sbin/mysqld(_Z11mysql_<wbr>parseP3THDPcjP12Parser_st=
ate+<wbr>0xfa)[0x58e94a]
<br>&gt;&gt; &gt;
<br>&gt;&gt; /usr/sbin/mysqld(_Z16dispatch_<wbr>command19enum_server_<wbr>c=
ommandP3THDPcj+0x1eff)[<wbr>0x5917df]
<br>&gt;&gt;
<br>&gt;&gt; &gt; /usr/sbin/mysqld(_Z10do_<wbr>commandP3THD+0x1b3)[0x592673=
]
<br>&gt;&gt; &gt; /usr/sbin/mysqld(_Z24do_<wbr>handle_one_connectionP3THD+<=
wbr>0x2c0)[0x62b230]
<br>&gt;&gt; &gt; /usr/sbin/mysqld(handle_one_<wbr>connection+0x4c)[0x62b2a=
c]
<br>&gt;&gt; &gt; /lib/libpthread.so.0(+0x69ca)[<wbr>0x7f09323ec9ca]
<br>&gt;&gt; &gt; /lib/libc.so.6(clone+0x6d)[<wbr>0x7f0931468cdd]
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; Trying to get some variables.
<br>&gt;&gt; &gt; Some pointers may be invalid and cause the dump to abort.
<br>&gt;&gt; &gt; Query (7f08e47e96f0): is an invalid pointer
<br>&gt;&gt; &gt; Connection ID (thread ID): 1210755
<br>&gt;&gt; &gt; Status: NOT_KILLED
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt;
<br>&gt;&gt; 6
<br>&gt;&gt;
<br>&gt;&gt;
<br>&gt;
<br>
<br>
<br></blockquote>
------=_Part_1121_29705786.1343770389730--

------=_Part_1120_26874062.1343770389730--