<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Maatkit version 1674 released</title>
	<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/</link>
	<description>Stay curious!</description>
	<pubDate>Sun, 20 Jul 2008 22:51:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14180</link>
		<author>Bruce Bristol</author>
		<pubDate>Fri, 18 Jan 2008 23:27:28 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14180</guid>
		<description>Hi Baron,

Just wanted to let you know I found the cause.  They're using the UUID() function which doesn't yet work in replication.

Have a good weekend!

-Bruce</description>
		<content:encoded><![CDATA[<p>Hi Baron,</p>
<p>Just wanted to let you know I found the cause.  They&#8217;re using the UUID() function which doesn&#8217;t yet work in replication.</p>
<p>Have a good weekend!</p>
<p>-Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14179</link>
		<author>Bruce Bristol</author>
		<pubDate>Thu, 17 Jan 2008 21:23:03 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14179</guid>
		<description>I decided to do another sql compare using left join, as I should've in the first place and found 300  rows that have different primary keys, so there indeed are differences.

Thanks for your time, Baron!

-Bruce</description>
		<content:encoded><![CDATA[<p>I decided to do another sql compare using left join, as I should&#8217;ve in the first place and found 300  rows that have different primary keys, so there indeed are differences.</p>
<p>Thanks for your time, Baron!</p>
<p>-Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14178</link>
		<author>Xaprb</author>
		<pubDate>Thu, 17 Jan 2008 20:54:18 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14178</guid>
		<description>Try running mk-table-sync and see if it finds any rows different, then inspect those rows.  I'm curious if that'll shed any light.</description>
		<content:encoded><![CDATA[<p>Try running mk-table-sync and see if it finds any rows different, then inspect those rows.  I&#8217;m curious if that&#8217;ll shed any light.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14177</link>
		<author>Bruce Bristol</author>
		<pubDate>Thu, 17 Jan 2008 20:51:33 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14177</guid>
		<description>Nope.  Here are the original table names which I copied to another db to do the SQL comparison:

DATABASE TABLE             CHUNK HOST          ENGINE      COUNT                         CHECKSUM TIME WAIT STAT  LAG
sugarcrm acl_users_actions     0 grm-db-slave0 InnoDB     440342 6593e420b3992899b5a6c57493cd99f0    4    0 NULL NULL
sugarcrm acl_users_actions     0 grm-db        InnoDB     440342 146557c1fffdb11126c5184a5734b399    4    0 NULL NULL</description>
		<content:encoded><![CDATA[<p>Nope.  Here are the original table names which I copied to another db to do the SQL comparison:</p>
<p>DATABASE TABLE             CHUNK HOST          ENGINE      COUNT                         CHECKSUM TIME WAIT STAT  LAG<br />
sugarcrm acl_users_actions     0 grm-db-slave0 InnoDB     440342 6593e420b3992899b5a6c57493cd99f0    4    0 NULL NULL<br />
sugarcrm acl_users_actions     0 grm-db        InnoDB     440342 146557c1fffdb11126c5184a5734b399    4    0 NULL NULL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14176</link>
		<author>Xaprb</author>
		<pubDate>Thu, 17 Jan 2008 20:47:16 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14176</guid>
		<description>Then there are probably rows missing from one of the tables.  Check the row count.  If you use mk-table-sync with --print, you can see what it thinks is different.</description>
		<content:encoded><![CDATA[<p>Then there are probably rows missing from one of the tables.  Check the row count.  If you use mk-table-sync with &#8211;print, you can see what it thinks is different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14175</link>
		<author>Bruce Bristol</author>
		<pubDate>Thu, 17 Jan 2008 20:40:55 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14175</guid>
		<description>Still match...

mysql&#62; create table auad select m.id from auam m, auas s
    -&#62; where
    -&#62;        m.id                 =  s.id and
    -&#62;   (MD5(m.user_id           )  MD5(m.user_id           )
    -&#62; or MD5(m.category_id       )  MD5(m.category_id       )
    -&#62; or MD5(m.category_type     )  MD5(m.category_type     )
    -&#62; or MD5(m.modified_user_id  )  MD5(m.modified_user_id  )
    -&#62; or MD5(m.created_by        )  MD5(m.created_by        )
    -&#62; or MD5(m.date_modified     )  MD5(m.date_modified     )
    -&#62; or MD5(m.date_created      )  MD5(m.date_created      )
    -&#62; or MD5(m.allow_read        )  MD5(m.allow_read        )
    -&#62; or MD5(m.allow_edit        )  MD5(m.allow_edit        )
    -&#62; or MD5(m.allow_read_by_user)  MD5(m.allow_read_by_user)
    -&#62; or MD5(m.allow_edit_by_user)  MD5(m.allow_edit_by_user)
    -&#62; or MD5(m.allow_read_by_team)  MD5(m.allow_read_by_team)
    -&#62; or MD5(m.allow_edit_by_team)  MD5(m.allow_edit_by_team)
    -&#62; or MD5(m.deleted           )  MD5(m.deleted           ));
Query OK, 0 rows affected (26.17 sec)
Records: 0  Duplicates: 0  Warnings: 0</description>
		<content:encoded><![CDATA[<p>Still match&#8230;</p>
<p>mysql&gt; create table auad select m.id from auam m, auas s<br />
    -&gt; where<br />
    -&gt;        m.id                 =  s.id and<br />
    -&gt;   (MD5(m.user_id           )  MD5(m.user_id           )<br />
    -&gt; or MD5(m.category_id       )  MD5(m.category_id       )<br />
    -&gt; or MD5(m.category_type     )  MD5(m.category_type     )<br />
    -&gt; or MD5(m.modified_user_id  )  MD5(m.modified_user_id  )<br />
    -&gt; or MD5(m.created_by        )  MD5(m.created_by        )<br />
    -&gt; or MD5(m.date_modified     )  MD5(m.date_modified     )<br />
    -&gt; or MD5(m.date_created      )  MD5(m.date_created      )<br />
    -&gt; or MD5(m.allow_read        )  MD5(m.allow_read        )<br />
    -&gt; or MD5(m.allow_edit        )  MD5(m.allow_edit        )<br />
    -&gt; or MD5(m.allow_read_by_user)  MD5(m.allow_read_by_user)<br />
    -&gt; or MD5(m.allow_edit_by_user)  MD5(m.allow_edit_by_user)<br />
    -&gt; or MD5(m.allow_read_by_team)  MD5(m.allow_read_by_team)<br />
    -&gt; or MD5(m.allow_edit_by_team)  MD5(m.allow_edit_by_team)<br />
    -&gt; or MD5(m.deleted           )  MD5(m.deleted           ));<br />
Query OK, 0 rows affected (26.17 sec)<br />
Records: 0  Duplicates: 0  Warnings: 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14174</link>
		<author>Xaprb</author>
		<pubDate>Thu, 17 Jan 2008 20:16:58 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14174</guid>
		<description>Something's different then.  You could try comparing the tables by doing the same comparison above, but write the WHERE clause like this:

MD5(col) = MD5(col)...</description>
		<content:encoded><![CDATA[<p>Something&#8217;s different then.  You could try comparing the tables by doing the same comparison above, but write the WHERE clause like this:</p>
<p>MD5(col) = MD5(col)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14173</link>
		<author>Bruce Bristol</author>
		<pubDate>Thu, 17 Jan 2008 19:56:01 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14173</guid>
		<description>Checksum comes back with different values.</description>
		<content:encoded><![CDATA[<p>Checksum comes back with different values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14172</link>
		<author>Xaprb</author>
		<pubDate>Thu, 17 Jan 2008 19:40:43 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14172</guid>
		<description>What does CHECKSUM TABLE say?

Trailing spaces are stripped from comparisons so SQL joins may not agree with the checksums.</description>
		<content:encoded><![CDATA[<p>What does CHECKSUM TABLE say?</p>
<p>Trailing spaces are stripped from comparisons so SQL joins may not agree with the checksums.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Bristol</title>
		<link>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14171</link>
		<author>Bruce Bristol</author>
		<pubDate>Thu, 17 Jan 2008 19:27:48 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2008/01/05/maatkit-version-1674-released/#comment-14171</guid>
		<description>Hi Baron,

I have an interesting problem (?) with mk-table-checksum

Using BIT_XOR it shows the tables are different.

Doing a SQL comparison shows them the same.  I know we can expect different results with doubles and/or floats, but this table has neither.

Table layout and comparison shown below:

mysql&#62; desc auas;
 -------------------- -------------- ------ ----- --------- ------- 
&#124; Field              &#124; Type         &#124; Null &#124; Key &#124; Default &#124; Extra &#124;
 -------------------- -------------- ------ ----- --------- ------- 
&#124; id                 &#124; varchar(36)  &#124; NO   &#124; PRI &#124; NULL    &#124;       &#124;
&#124; user_id            &#124; varchar(36)  &#124; YES  &#124; MUL &#124; NULL    &#124;       &#124;
&#124; category_id        &#124; varchar(36)  &#124; YES  &#124; MUL &#124; NULL    &#124;       &#124;
&#124; category_type      &#124; varchar(100) &#124; YES  &#124;     &#124; NULL    &#124;       &#124;
&#124; modified_user_id   &#124; varchar(36)  &#124; YES  &#124;     &#124; NULL    &#124;       &#124;
&#124; created_by         &#124; varchar(36)  &#124; YES  &#124;     &#124; NULL    &#124;       &#124;
&#124; date_modified      &#124; datetime     &#124; YES  &#124;     &#124; NULL    &#124;       &#124;
&#124; date_created       &#124; datetime     &#124; YES  &#124;     &#124; NULL    &#124;       &#124;
&#124; allow_read         &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; allow_edit         &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; allow_read_by_user &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; allow_edit_by_user &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; allow_read_by_team &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; allow_edit_by_team &#124; tinyint(1)   &#124; YES  &#124;     &#124; 0       &#124;       &#124;
&#124; deleted            &#124; tinyint(1)   &#124; NO   &#124; MUL &#124; 0       &#124;       &#124;
 -------------------- -------------- ------ ----- --------- ------- 
15 rows in set (0.00 sec)

mysql&#62; create table auad select m.id from auam m, auas s
    -&#62; where
    -&#62;    m.id                 =  s.id and
    -&#62;   (m.user_id             s.user_id
    -&#62; or m.category_id         s.category_id
    -&#62; or m.category_type       s.category_type
    -&#62; or m.modified_user_id    s.modified_user_id
    -&#62; or m.created_by          s.created_by
    -&#62; or m.date_modified       s.date_modified
    -&#62; or m.date_created        s.date_created
    -&#62; or m.allow_read          s.allow_read
    -&#62; or m.allow_edit          s.allow_edit
    -&#62; or m.allow_read_by_user  s.allow_read_by_user
    -&#62; or m.allow_edit_by_user  s.allow_edit_by_user
    -&#62; or m.allow_read_by_team  s.allow_read_by_team
    -&#62; or m.allow_edit_by_team  s.allow_edit_by_team
    -&#62; or m.deleted             s.deleted);
Query OK, 0 rows affected (4.88 sec)
Records: 0  Duplicates: 0  Warnings: 0</description>
		<content:encoded><![CDATA[<p>Hi Baron,</p>
<p>I have an interesting problem (?) with mk-table-checksum</p>
<p>Using BIT_XOR it shows the tables are different.</p>
<p>Doing a SQL comparison shows them the same.  I know we can expect different results with doubles and/or floats, but this table has neither.</p>
<p>Table layout and comparison shown below:</p>
<p>mysql&gt; desc auas;<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;-<br />
| Field              | Type         | Null | Key | Default | Extra |<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;-<br />
| id                 | varchar(36)  | NO   | PRI | NULL    |       |<br />
| user_id            | varchar(36)  | YES  | MUL | NULL    |       |<br />
| category_id        | varchar(36)  | YES  | MUL | NULL    |       |<br />
| category_type      | varchar(100) | YES  |     | NULL    |       |<br />
| modified_user_id   | varchar(36)  | YES  |     | NULL    |       |<br />
| created_by         | varchar(36)  | YES  |     | NULL    |       |<br />
| date_modified      | datetime     | YES  |     | NULL    |       |<br />
| date_created       | datetime     | YES  |     | NULL    |       |<br />
| allow_read         | tinyint(1)   | YES  |     | 0       |       |<br />
| allow_edit         | tinyint(1)   | YES  |     | 0       |       |<br />
| allow_read_by_user | tinyint(1)   | YES  |     | 0       |       |<br />
| allow_edit_by_user | tinyint(1)   | YES  |     | 0       |       |<br />
| allow_read_by_team | tinyint(1)   | YES  |     | 0       |       |<br />
| allow_edit_by_team | tinyint(1)   | YES  |     | 0       |       |<br />
| deleted            | tinyint(1)   | NO   | MUL | 0       |       |<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;-<br />
15 rows in set (0.00 sec)</p>
<p>mysql&gt; create table auad select m.id from auam m, auas s<br />
    -&gt; where<br />
    -&gt;    m.id                 =  s.id and<br />
    -&gt;   (m.user_id             s.user_id<br />
    -&gt; or m.category_id         s.category_id<br />
    -&gt; or m.category_type       s.category_type<br />
    -&gt; or m.modified_user_id    s.modified_user_id<br />
    -&gt; or m.created_by          s.created_by<br />
    -&gt; or m.date_modified       s.date_modified<br />
    -&gt; or m.date_created        s.date_created<br />
    -&gt; or m.allow_read          s.allow_read<br />
    -&gt; or m.allow_edit          s.allow_edit<br />
    -&gt; or m.allow_read_by_user  s.allow_read_by_user<br />
    -&gt; or m.allow_edit_by_user  s.allow_edit_by_user<br />
    -&gt; or m.allow_read_by_team  s.allow_read_by_team<br />
    -&gt; or m.allow_edit_by_team  s.allow_edit_by_team<br />
    -&gt; or m.deleted             s.deleted);<br />
Query OK, 0 rows affected (4.88 sec)<br />
Records: 0  Duplicates: 0  Warnings: 0</p>
]]></content:encoded>
	</item>
</channel>
</rss>
