<?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"
	>
<channel>
	<title>Comments on: Creating an Intermediate Replication Layer</title>
	<atom:link href="http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/</link>
	<description>a blog about databases and stuff</description>
	<pubDate>Wed, 03 Dec 2008 21:10:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Gregory Haase</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-671</link>
		<dc:creator>Gregory Haase</dc:creator>
		<pubDate>Mon, 28 Jul 2008 15:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-671</guid>
		<description>I made one final edit to this procedure. The &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; directive only causes the slave SQL thread to stop at the given bin-log and position. At this point, the slave IO thread is still running. The original script had a &lt;code&gt;RESET SLAVE&lt;/code&gt; call immediately after &lt;code&gt;MASTER_POS_WAIT&lt;/code&gt;.  This resulted in the error:
&lt;pre lang="sql"&gt;ERROR 1198 (HY000) at line 6: This operation cannot be performed with a running slave; run STOP SLAVE first&lt;/pre&gt; 
Inserting &lt;code&gt;STOP SLAVE&lt;/code&gt; before &lt;code&gt;RESET SLAVE&lt;/code&gt; resolves the issue.</description>
		<content:encoded><![CDATA[<p>I made one final edit to this procedure. The <code>START SLAVE UNTIL</code> directive only causes the slave SQL thread to stop at the given bin-log and position. At this point, the slave IO thread is still running. The original script had a <code>RESET SLAVE</code> call immediately after <code>MASTER_POS_WAIT</code>.  This resulted in the error:</p>

<div class="wp_syntax"><div class="code"><pre class="sql">ERROR <span style="color: #cc66cc;">1198</span> <span style="color: #66cc66;">&#40;</span>HY000<span style="color: #66cc66;">&#41;</span> at line <span style="color: #cc66cc;">6</span>: This operation cannot be performed <span style="color: #993333; font-weight: bold;">WITH</span> a running slave; run STOP SLAVE first</pre></div></div>

<p>Inserting <code>STOP SLAVE</code> before <code>RESET SLAVE</code> resolves the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Haase</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-648</link>
		<dc:creator>Gregory Haase</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-648</guid>
		<description>Thank you Mats for catching that one. I've edited the original thread to include MASTER_POS_WAIT as you suggested.</description>
		<content:encoded><![CDATA[<p>Thank you Mats for catching that one. I&#8217;ve edited the original thread to include MASTER_POS_WAIT as you suggested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mats Kindahl</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-647</link>
		<dc:creator>Mats Kindahl</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-647</guid>
		<description>Uhm... as I understand what you are trying to accomplish, there is a problem with following the procedure given. If the instructions are followed by the letter, the intermediate slave will be reset &lt;em&gt;immediately&lt;/em&gt; and not when the slave reaches the until-position given in the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt;. This is because the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; starts the slave asynchronously, i.e., will return immediately with the slave running. To wait for the slaves to reach the given position before resetting them, it is necessary to add a &lt;code&gt;SELECT MASTER_POS_WAIT('bin-logs.000025', 106)&lt;/code&gt; after the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; but before the &lt;code&gt;RESET MASTER&lt;/code&gt; and the &lt;code&gt;RESET SLAVE&lt;/code&gt; respectively.</description>
		<content:encoded><![CDATA[<p>Uhm&#8230; as I understand what you are trying to accomplish, there is a problem with following the procedure given. If the instructions are followed by the letter, the intermediate slave will be reset <em>immediately</em> and not when the slave reaches the until-position given in the <code>START SLAVE UNTIL</code>. This is because the <code>START SLAVE UNTIL</code> starts the slave asynchronously, i.e., will return immediately with the slave running. To wait for the slaves to reach the given position before resetting them, it is necessary to add a <code>SELECT MASTER_POS_WAIT('bin-logs.000025', 106)</code> after the <code>START SLAVE UNTIL</code> but before the <code>RESET MASTER</code> and the <code>RESET SLAVE</code> respectively.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
