[MDEV-12756] rpl.rpl_killed_ddl fails in buildbot with 'Can't find record' Created: 2017-05-09 Updated: 2017-05-16 Resolved: 2017-05-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Tests |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
http://buildbot.askmonty.org/buildbot/builders/kvm-fulltest2/builds/8057/steps/test_2/logs/stdio
|
| Comments |
| Comment by Michael Widenius [ 2017-05-14 ] |
|
The bug happens when row 231 in rpl_killed_ddl is exceuted: send ALTER TABLE t1 ADD (d int); The warning is printed in sql_table.cc::copy_data_betwen_tables() here: if (to->file->ha_end_bulk_insert() && error <= 0) { DBUG_ASSERT(0); to->file->print_error(my_errno,MYF(0)); error= 1; }So the issue is probably that the signal to kill alter table happens after the copy of data (as error <= 0) and was discovered inside ha_end_bulk_insert(), which returns a confusing my_errno. |
| Comment by Michael Widenius [ 2017-05-16 ] |
|
The issue was that my_errno was not set properly when a repair was killed, |