~percona-toolkit-dev/percona-toolkit/fix-sync-ignore-bug-1002365-2.0

« back to all changes in this revision

Viewing changes to t/pt-table-checksum/chunk_index.t

Merge test-ptc-pk-bug-978432-2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
   plan skip_all => 'Cannot connect to sandbox master';
26
26
}
27
27
else {
28
 
   plan tests => 10;
 
28
   plan tests => 11;
29
29
}
30
30
 
31
31
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
142
142
);
143
143
 
144
144
# #############################################################################
 
145
# Bug 978432: PK is ignored
 
146
# #############################################################################
 
147
$sb->load_file('master', "t/pt-table-checksum/samples/not-using-pk-bug.sql");
 
148
PerconaTest::wait_for_table($dbh, "test.multi_resource_apt", "apt_id=4 AND res_id=4");
 
149
warn "xxx";
 
150
ok(
 
151
   no_diff(
 
152
      sub { pt_table_checksum::main(@args,
 
153
         qw(-t test.multi_resource_apt --chunk-size 2 --explain --explain))
 
154
      },
 
155
      "t/pt-table-checksum/samples/not-using-pk-bug.out",
 
156
   ),
 
157
   "Smarter chunk index selection (bug 978432)"
 
158
);
 
159
 
 
160
# #############################################################################
145
161
# Done.
146
162
# #############################################################################
147
163
$sb->wipe_clean($dbh);