Comments on: Maatkit version 1972 released http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: robinzhao http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14869 robinzhao Tue, 15 Jul 2008 10:47:23 +0000 http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14869 I take follow from your code:

if ( $col_type =~ m/(?:|int|year|float|double|decimal)$/ ) {
$start_point = $args{min};
$end_point = $args{max};
$range_func = ‘range_num’;
}
the database I test’s PK is Fcommodity_id (bigint(20) unsigned)

]]>
By: robinzhao http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14868 robinzhao Tue, 15 Jul 2008 10:41:36 +0000 http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14868 mysql> desc t_commodity_0300;
———————– ———————- —— —– ——————— ——-
| Field | Type | Null | Key | Default | Extra |
———————– ———————- —— —– ——————— ——-
| Fcommodity_id | bigint(20) unsigned | | PRI | 0 | |
| Fqquin | int(10) unsigned | | MUL | 0 | |
| Fqqnick | varchar(32) | | | | |
| Fshopid | bigint(20) unsigned | | MUL | 0 | |
| Ftitle | varchar(60) | | | | |
| Fleaf_classid | int(10) unsigned | | MUL | 0 | |
| Fshop_classid | varchar(10) | | | | |
| Fprovince | tinyint(3) unsigned | | | 0 | |
| Fcity | smallint(5) unsigned | | | 0 | |
| Fcountry | int(10) unsigned | | | 0 | |
| Fprice | int(10) unsigned | | | 0 | |
| Fmoney_type | tinyint(3) unsigned | | | 0 | |
| Fmain_logo_pos | varchar(60) | | | | |
| Fnum | int(10) unsigned | | | 1 | |
| Fnew_type | tinyint(4) | | | 0 | |
| Fdeal_type | tinyint(4) | | | 0 | |
| Fsupport_pay_agency | tinyint(4) | | | 0 | |
| Fis_recommend | tinyint(4) | | | 0 | |
| Fstate | tinyint(4) | | | 0 | |
| Fproperty | int(10) unsigned | | | 0 | |
| Fbrand | varchar(32) | | | | |
| Fspec | varchar(32) | | | | |
| Fproducer | varchar(64) | | | | |
| Fdesc_file_pos | varchar(60) | | | | |
| Fprice_to_add | int(10) unsigned | | | 0 | |
| Fadd_time | datetime | | | 0000-00-00 00:00:00 | |
| Fupload_time | datetime | | | 0000-00-00 00:00:00 | |
| Fsold_num | int(10) unsigned | | | 0 | |
| Fbuy_cnt | int(10) unsigned | | | 0 | |
| Fvalid_duration | int(10) unsigned | | | 0 | |

]]>
By: robinzhao http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14867 robinzhao Tue, 15 Jul 2008 10:39:50 +0000 http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14867 baron,I got an error ,when I test with mk-table-sync, the error is “Chunk size is too small” ,I don’t know why.

Shell> mk-table-sync –print –verbose –algorithm=chunk –chunksize=500 h=172.29.78.11,u=root,p=123456,D=orders h=172.29.78.12,u=root,p=123456,D=orders

# Syncing A=utf8,D=orders,h=172.29.78.11,p=…,u=robin_repl
# DELETE REPLACE INSERT UPDATE ALGORITHM DATABASE.TABLE
# 0 0 0 0 Chunk orders.c2cClassRelation
# 0 0 0 0 Chunk orders.c2cClassRelation_new
# 0 0 0 0 Chunk orders.commodity_state_1
Cannot chunk orders.db1_comm_dis at /usr/local/bin/mk-table-sync line 2499. while doing orders.db1_comm_dis
# 0 0 0 0 Chunk orders.lcp
# 0 0 0 0 Chunk orders.t_auction_bid_info_000
# 0 0 0 0 Chunk orders.t_auction_bid_info_004
# 0 0 0 0 Chunk orders.t_auction_bid_info_008
Chunk size is too small: 1.18207 !> 1181940640153487 while doing orders.t_commodity_0260
Chunk size is too small: 2.30805 !> 2307849136941054 while doing orders.t_commodity_0264
Chunk size is too small: 3.43416 !> 3433929432646923 while doing orders.t_commodity_0268
Chunk size is too small: 4.55979 !> 4559614590861196 while doing orders.t_commodity_0272
Chunk size is too small: 5.68630 !> 5686120088967910 while doing orders.t_commodity_0276
Chunk size is too small: 6.81156 !> 6811410109575803 while doing orders.t_commodity_0280
Chunk size is too small: 7.93760 !> 7937365851038979 while doing orders.t_commodity_0284
Chunk size is too small: 9.06345 !> 9063235693081813 while doing orders.t_commodity_0288
Chunk size is too small: 1.01893 !> 10189217204375279 while doing orders.t_commodity_0292
Chunk size is too small: 1.13153 !> 11315121406191048 while doing orders.t_commodity_0296
Chunk size is too small: 1.24411 !> 12440922528698754 while doing orders.t_commodity_0300

:)

]]>
By: Gregory Haase http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14682 Gregory Haase Mon, 02 Jun 2008 13:18:52 +0000 http://www.xaprb.com/blog/2008/06/02/maatkit-version-1972-released/#comment-14682 No need to hit the back button – once you nominate there’s link to “Nominate this project again” right there…

I felt obliged to test the link. It works. Then I tested it again just to be certain I was getting consistent results. :-)

]]>