Coder Social home page Coder Social logo

enhanced-semi-sync-replication's Introduction

The patch sequence:
ESR.percona.5.5.15.patch [ESR main patch]
ESR.percona.5.5.15.fix-bug-44058.patch [fix bug#44058 issue 5]
ESR.percona.5.5.15.master-trx-net-wait-detail.patch [master wait detail info]
ESR.percona.5.5.15.slave-queue-time-detail.patch [slave wait detail info]

enhanced-semi-sync-replication's People

Contributors

orczhou avatar

Watchers

James Cloos avatar Shawn avatar

enhanced-semi-sync-replication's Issues

bug#44058 (issue 5)

Thread 33 is trying to rotate to a new log and is holding 
mysql_bin_log::LOCK_log. It is
unable to proceed because there are pending prepared transactions.

Thread 32 (at least) has a prepared transaction. It is unable to progress 
beyond prepared
to committed because it needs an acknowledgment from a semi-sync slave.
It's not getting the acknowledgment from the slaves because the Binlog Dump 
threads are
blocked reading events because they can't lock LOCK_log which is held by thread 
33.



thread 1                        || thread 2                          
innodb prepare                  || innodb prepare                   1. lock 
LOCK_log
write binary log(xid_prepare++) || rotate binary first============> 2. waiting  
xid_prepare === 0   
...                             || write binary log(xid_prepare++)  3. 
...                             || wait slave reply
...                             || 
...                             ||                                           
wait slave reply                || 
...                             || 
...                             || 
commit                          || 
tc_unlog...(xid_prepare--)      || 

dump thread try to get LOCK_log(thread 2 is holding this and wait thread 1) 
send the log.

Ok thread 1 is waiting dump thread finish it's job, dump thread is waiting 
thread 2 releasing the lock, thread 2 is waiting for thread 1 
unlog(xid_prepare--).

Original issue reported on code.google.com by [email protected] on 16 Nov 2011 at 7:21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.