slave locks up waiting for commit lock

Bug #1295820 reported by monty solomon
This bug report is a duplicate of:  Bug #1386363: SHOW SLAVE STATUS hangs. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

Here is the entry from the process list

          ID: 364
         USER: system user
         HOST:
           DB: NULL
      COMMAND: Connect
         TIME: 11267
        STATE: Waiting for commit lock
         INFO: NULL
      TIME_MS: 11266610
    ROWS_SENT: 0
ROWS_EXAMINED: 0

Server version: 5.6.16-64.1-56-log Percona Server (GPL), Release 64.1, Revision 563

CentOS release 6.5 (Final)

Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
monty solomon (monty+launchpad) wrote :

# rpm -qa | grep Percona
Percona-Server-server-56-5.6.16-rel64.1.el6.x86_64
Percona-Server-client-56-5.6.16-rel64.1.el6.x86_64
Percona-Server-devel-56-5.6.16-rel64.1.el6.x86_64
Percona-Server-shared-compat-5.5.35-rel33.0.611.rhel6.x86_64
Percona-Server-shared-56-5.6.16-rel64.1.el6.x86_64

Revision history for this message
monty solomon (monty+launchpad) wrote :
Download full text (7.3 KiB)

mysql> SHOW ENGINE INNODB STATUS\G
*************************** 1. row ***************************
  Type: InnoDB
  Name:
Status:
=====================================
2014-03-21 19:42:53 7f4370d2a700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 12 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 27050 srv_active, 0 srv_shutdown, 22385 srv_idle
srv_master_thread log flush and writes: 49435
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 312899
OS WAIT ARRAY INFO: signal count 312727
Mutex spin waits 252689, rounds 7171447, OS waits 237254
RW-shared spins 72427, rounds 2169907, OS waits 72281
RW-excl spins 2573, rounds 98345, OS waits 3256
Spin rounds per wait: 28.38 mutex, 29.96 RW-shared, 38.22 RW-excl
------------
TRANSACTIONS
------------
Trx id counter 126744264
Purge done for trx's n:o < 126744259 undo n:o < 0 state: running but idle
History list length 1497
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started
MySQL thread id 6563, OS thread handle 0x7f4370d2a700, query id 1034611 localhost root init
SHOW ENGINE INNODB STATUS
---TRANSACTION 126570662, not started
MySQL thread id 3850, OS thread handle 0x7f45082c3700, query id 1029582 10.82.214.16 zenoss init
---TRANSACTION 126744261, ACTIVE 11622 sec
2 lock struct(s), heap size 360, 1 row lock(s), undo log entries 1
MySQL thread id 364, OS thread handle 0x7f45081ff700, query id 1029572 Waiting for commit lock
TABLE LOCK table `singularity12`.`taskHistory` trx id 126744261 lock mode IX
RECORD LOCKS space id 437 page no 2770185 n bits 80 index `PRIMARY` of table `singularity12`.`taskHistory` trx id 126744261 lock_mode X locks rec but not gap
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,
 ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
1764945 OS file reads, 921802 OS file writes, 71456 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 18, seg size 20, 618 merges
merged operations:
 insert 863, delete mark 785, delete 109
discarded operations:
 insert 0, delete mark 0, delete 0
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 161270301510
Log flushed up to 161270301510
Pages flu...

Read more...

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Please, send the entire output of SHOW PROCESSLIST when this happens. I wonder if this can be something like http://bugs.mysql.com/bug.php?id=70307

Changed in percona-server:
status: New → Incomplete
Revision history for this message
monty solomon (monty+launchpad) wrote :

It may be related to that upstream issue.

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

May be related or is related I wonder (hence my request for SHOW PROCESSLIST)? If it is the same bug, we do have a Verified upstream bug and can just wait for the fix or check if we can fix this earlier than Oracle.

If we are NOT sure, we may have a new bug and still have to work on a repeatable test case.

Revision history for this message
monty solomon (monty+launchpad) wrote :

I have not seen the problem recur since I opened this bug.

When I see it again I will capture the PROCESSLIST.

Revision history for this message
monty solomon (monty+launchpad) wrote :

Bug 1386363 may be related to this one.

Changed in percona-server:
status: Incomplete → New
Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Considering duplicate of this https://bugs.launchpad.net/percona-server/+bug/1386363
As both "commit lock" and "show slave status hang" issues are confirmed there. (Check comment #9 on above bug)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.