The bug was caused by ignoring failure when opening a a table in Table_map_log_event::exec_event().
Attach a file by drag & drop or click to upload