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 whole cluster locked due to deadlock inside innodb in 1 node
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ilias Bertsimas  
View profile  
 More options Oct 11 2012, 10:56 am
From: Ilias Bertsimas <award...@gmail.com>
Date: Thu, 11 Oct 2012 07:56:35 -0700 (PDT)
Local: Thurs, Oct 11 2012 10:56 am
Subject: Galera whole cluster locked due to deadlock inside innodb in 1 node

Hello,

I just got a really weird lock in one node due to a deadlock and it held
back the whole cluster making it unavailable to server queries.
This is what I got in the log:
WSREP: BF lock wait long
WSREP: BF lock wait long
WSREP: BF lock wait long
WSREP: BF lock wait long
WSREP: BF lock wait long

and some extra innodb deadlock monitor output:

------------------------
LATEST DETECTED DEADLOCK
------------------------
121011 14:19:36
*** (1) TRANSACTION:
TRANSACTION 817CA1D73, ACTIVE 0 sec inserting
mysql tables in use 201, locked 201
LOCK WAIT 6 lock struct(s), heap size 1248, 4 row lock(s), undo log entries
2
MySQL thread id 6060764, OS thread handle 0x7fbbd0119700, query id
2791554675 192.168.0.2 user update
INSERT INTO clipping_resume (idReport, flag, cnt) VALUES (NEW.idReport,
NEW.flag, 1)
                ON DUPLICATE KEY UPDATE cnt=cnt+1
*** (1) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 364 page no 14 n bits 408 index `PRIMARY` of table
`maindb`.`clipping_resume` trx id 817CA1D73 lock_mode X locks rec but not
gap waiting
*** (2) TRANSACTION:
TRANSACTION 817CA1D6F, ACTIVE 0 sec fetching rows, thread declared inside
InnoDB 497
mysql tables in use 201, locked 201
32 lock struct(s), heap size 6960, 192 row lock(s), undo log entries 190
MySQL thread id 6025190, OS thread handle 0x7fb6a40d1700, query id
2791554664  192.168.0.2 user
DELETE  FROM clipping where idReport = 3593 AND flag in ('S') LIMIT 100
*** (2) HOLDS THE LOCK(S):
RECORD LOCKS space id 364 page no 14 n bits 408 index `PRIMARY` of table
`maindb`.`clipping_resume` trx id 817CA1D6F lock_mode X locks rec but not
gap
*** (2) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 212 page no 34892 n bits 600 index `flag` of table
`maindb`.`clipping` /* Partition `p198` */ trx id 817CA1D6F lock_mode X
locks rec but not gap waiting
*** WE ROLL BACK TRANSACTION (1)

Is there a way to avoid this with out of order commits or any way to
timeout a node and make it leave the cluster so the other ones can continue
?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.