• Sujatha's avatar
    MDEV-20348: DROP TABLE IF EXISTS killed on master but was replicated · 29e560cd
    Sujatha authored
    Problem:
    =======
    DROP TABLE IF EXISTS was killed. The table still exists on
    the master but the DDL was still logged.
    
    Analysis:
    =========
    During the execution of DROP TABLE command "ha_delete_table" call is invoked
    to delete the table. If the query is killed at this point, the kill command
    is not handled within the code. This results in two issues.
    1) The table which is not dropped also gets written into the binary log.
    2) The code continues further upon receiving 'KILL QUERY'.
    
    Fix:
    ===
    Upon receiving the KILL command the query should stop its current execution.
    Tables which were successfully dropped prior to KILL command should be
    included in the binary log.
    29e560cd
rpl_failed_drop_tbl_binlog.test 1.96 KB