• Sven Sandberg's avatar
    BUG#38178: rpl_loaddata_map fails sporadically in pushbuild · 620c4878
    Sven Sandberg authored
    Problem: master binlog has 'create table t1'. Master binlog
    was removed before slave could replicate it. In test's cleanup
    code, master did 'drop table t1', which caused slave sql
    thread to stop with an error since slave sql thread did not
    know about t1.
    Fix: t1 is just an auxiliary construction, only needed on
    master. Hence, we turn off binlogging before t1 is created,
    drop t1 as soon as we don't need it anymore, and then turn
    on binlogging again.
    
    
    mysql-test/include/show_binlog_events.inc:
      Filter out directories and block_len from
      LOAD DATA INFILE events.
    mysql-test/suite/rpl/r/rpl_loaddata_map.result:
      updated result file
    mysql-test/suite/rpl/t/rpl_loaddata_map.test:
      Turn off binlogging while t1 is used, drop t1 as soon
      as we don't need it anymore, and turn on binlogging again.
      Also added some comments and replaced 'show binlog events'
      by 'source include/show_binlog_events.inc'.
    620c4878
rpl_loaddata_map.test 1.81 KB