如题,虽然已经把冲突策略设置成了remove, 但是如果原始文件存在冲突,会导致虽然主表的数据是正常的,但是使用 ADMIN CHECK TABLE
时候,就会报错。
正常情况在删除主表记录时,应该根据该条记录,把其他索引树上的对应值也删除掉的。
PS: 在尝试清理索引时候,也报错了:
mysql> admin check table t1;
ERROR 8223 (HY000): data inconsistency in table: t1, index: idx_1, handle: {SA0CFCSR03GR3PS, 002420, 1844474736059351040}, index-values:"handle: {SA0CFCSR03GR3PS, 002420, 1844474736059351040}, values: [KindMysqlTime 2016-03-18 KindString SA0CFCSR03GR3PS KindString 002420 KindString SA0CFCSR03GR3PS KindString 002420 KindMysqlTime 2016-03-18]" != record-values:""
mysql> ADMIN RECOVER INDEX t1 idx_1;
ERROR 1105 (HY000): [components/tidb_query_executors/src/table_scan_executor.rs:422]: Data is corrupted, missing data for NOT NULL column (offset = 0)
mysql>