neutronsharc / enhanced-semi-sync-replication Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/enhanced-semi-sync-replication
Automatically exported from code.google.com/p/enhanced-semi-sync-replication
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]
What steps will reproduce the problem?
1. Config more than one semi-sync slave
2. Monitor the avg_net_wait or avg_trx_wait
Original issue reported on code.google.com by [email protected]
on 20 Sep 2011 at 2:28
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
[deleted issue]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.