• Rucha Deodhar's avatar
    MDEV-22266: Diagnostics_area::sql_errno() const: Assertion · 3327bb60
    Rucha Deodhar authored
    `m_status == DA_ERROR' failed on SELECT after setting tmp_disk_table_size.
    
    Analysis: Mismatch in number of warnings between "194 warnings" vs
    "64 rows in set" is because of max_error_count variable which has default
    value of 64.
    About the corrupted tables, the error that occurs because of insufficient
    tmp_disk_table_size variable is not reported correctly and we continue to
    execute the statement. But because the previous error (about table being
    full)is not reported correctly, this error moves up the stack and is
    wrongly reported as parsing error later on while parsing frm file of one
    of the information schema table. This parsing error gives corrupted table
    error.
    As for the innodb error, it occurs even when tmp_disk_table_size is not
    insufficient is default but the internal error handler takes care of it
    and the error doesn't show. But when tmp_disk_table_size is insufficient,
    the fatal error which wasn't reported correctly moves up the stack so
    internal error handler is not called. So it shows errors.
    Fix: Report the error correctly.
    3327bb60
sql_show.cc 352 KB