<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making replication a bit more reliable</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-678057</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Mon, 16 Nov 2009 10:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-678057</guid>
		<description>@Aric,

Skipping errors by specifying &quot;slave-skip-errors = all&quot; in my.cnf is quite dangerous, since you will not even be aware of replication issues; with Ernesto&#039;s solution, you are at least forced into manual intervention, which may supply you with enlightenment about the problem&#039;s origins.

Instead, your replicated data will keep on moving away from master&#039;s data.</description>
		<content:encoded><![CDATA[<p>@Aric,</p>
<p>Skipping errors by specifying &#8220;slave-skip-errors = all&#8221; in my.cnf is quite dangerous, since you will not even be aware of replication issues; with Ernesto&#8217;s solution, you are at least forced into manual intervention, which may supply you with enlightenment about the problem&#8217;s origins.</p>
<p>Instead, your replicated data will keep on moving away from master&#8217;s data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-677695</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Sun, 15 Nov 2009 15:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-677695</guid>
		<description>These &quot;solutions&quot; make replication LESS reliable and MORE likely to have further problems!  FIX the problem, don&#039;t hide it.</description>
		<content:encoded><![CDATA[<p>These &#8220;solutions&#8221; make replication LESS reliable and MORE likely to have further problems!  FIX the problem, don&#8217;t hide it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aric</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-677547</link>
		<dc:creator>Aric</dc:creator>
		<pubDate>Sun, 15 Nov 2009 07:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-677547</guid>
		<description>Also, in my.cnf you can skip replication errors.

slave-skip-errors = all</description>
		<content:encoded><![CDATA[<p>Also, in my.cnf you can skip replication errors.</p>
<p>slave-skip-errors = all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex P.</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-510345</link>
		<dc:creator>Alex P.</dc:creator>
		<pubDate>Wed, 18 Mar 2009 00:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-510345</guid>
		<description>thank you. i will try it and find if can solve the problem. 

:-)</description>
		<content:encoded><![CDATA[<p>thank you. i will try it and find if can solve the problem. </p>
<p> <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ernesto Vargas</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-501070</link>
		<dc:creator>Ernesto Vargas</dc:creator>
		<pubDate>Tue, 10 Mar 2009 06:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-501070</guid>
		<description>Alex P,

You could also do:

STOP SLAVE; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; 

So the replication will jump that Dup Key error and continue with the next statement of the replication.</description>
		<content:encoded><![CDATA[<p>Alex P,</p>
<p>You could also do:</p>
<p>STOP SLAVE; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; </p>
<p>So the replication will jump that Dup Key error and continue with the next statement of the replication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex P.</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-497877</link>
		<dc:creator>Alex P.</dc:creator>
		<pubDate>Fri, 06 Mar 2009 18:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-497877</guid>
		<description>yes i know the &quot;duplicate key error&quot; may be related to different issues (sometimes its isp problem, manual inserts, our slaves uses dyndns and the update of the service sometime make it crash, etc ), the way i resolve the crash is making a backup of the master, send this backup to the slave (via sftp) then i execute this backup, delete the &#039;relay&#039; files and restart the mysql service... after that slave is runnning ok again. I know this &quot;solution&quot; is not very good (what do you think? ) so im trying to find another one, that&#039;s why i think this patch/feature will help me.</description>
		<content:encoded><![CDATA[<p>yes i know the &#8220;duplicate key error&#8221; may be related to different issues (sometimes its isp problem, manual inserts, our slaves uses dyndns and the update of the service sometime make it crash, etc ), the way i resolve the crash is making a backup of the master, send this backup to the slave (via sftp) then i execute this backup, delete the &#8216;relay&#8217; files and restart the mysql service&#8230; after that slave is runnning ok again. I know this &#8220;solution&#8221; is not very good (what do you think? ) so im trying to find another one, that&#8217;s why i think this patch/feature will help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-497873</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Fri, 06 Mar 2009 18:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-497873</guid>
		<description>Alex P, Gil

Actually this patch can fix that issue.

The problem is when your slave crash or some another problem - relay-log.info contains old information, and when you do slave start - slave tries to repeat transactions which were already executed (and you getting Duplicate key error).

Our patch tries to fix that and change relay-log.info  to the real last transaction.

However Dublicate key error may be related to different issues also, so I can&#039;t say for sure our patch is solution.</description>
		<content:encoded><![CDATA[<p>Alex P, Gil</p>
<p>Actually this patch can fix that issue.</p>
<p>The problem is when your slave crash or some another problem &#8211; relay-log.info contains old information, and when you do slave start &#8211; slave tries to repeat transactions which were already executed (and you getting Duplicate key error).</p>
<p>Our patch tries to fix that and change relay-log.info  to the real last transaction.</p>
<p>However Dublicate key error may be related to different issues also, so I can&#8217;t say for sure our patch is solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-497853</link>
		<dc:creator>Gil</dc:creator>
		<pubDate>Fri, 06 Mar 2009 17:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-497853</guid>
		<description>Alex, I have run into similar duplicate key errors in the past. It turns out the slave I was using to take backups had slightly different data than the master. You may want to do a consistency check using Maatkit just to be sure.</description>
		<content:encoded><![CDATA[<p>Alex, I have run into similar duplicate key errors in the past. It turns out the slave I was using to take backups had slightly different data than the master. You may want to do a consistency check using Maatkit just to be sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex P.</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-497627</link>
		<dc:creator>Alex P.</dc:creator>
		<pubDate>Fri, 06 Mar 2009 01:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-497627</guid>
		<description>hi. Sometimes i got (in slave) the &quot;Duplicate key entry&quot; error (i see this in the &#039;show slave status&#039; Last_error) always with an insert query. Dont know exactly why but just happened in 1 of 3 slave, and the others was fine and running normally. With Myisam just need &quot;load data from master&quot; but with InnoDB we have to download and run a backup of the Master DB and it takes some minutes..... i have this problem around 1 time every 3 months but im looking for a better solution..  
thanks again.</description>
		<content:encoded><![CDATA[<p>hi. Sometimes i got (in slave) the &#8220;Duplicate key entry&#8221; error (i see this in the &#8217;show slave status&#8217; Last_error) always with an insert query. Dont know exactly why but just happened in 1 of 3 slave, and the others was fine and running normally. With Myisam just need &#8220;load data from master&#8221; but with InnoDB we have to download and run a backup of the Master DB and it takes some minutes&#8230;.. i have this problem around 1 time every 3 months but im looking for a better solution..<br />
thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/04/making-replication-a-bit-more-reliable/comment-page-1/#comment-497405</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Thu, 05 Mar 2009 20:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=633#comment-497405</guid>
		<description>Alex,

It may help, or may not. To be sure I need to know what exact problem you have with restoring replication.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>It may help, or may not. To be sure I need to know what exact problem you have with restoring replication.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
