全量阶段失败报错,关键词“Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys”
场景描述
全量迁移或同步期间DRS任务报错,日志提示信息:service DATAMOVE failed, cause by: retry structures failed events=the fail structures are [type=constraint_data, index=106, schema_name=%s, object_name=%s]reason:[Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys]
可能原因
源库和目标库表结构不一致。
解决方案
- 请客户运维工程师修改目标库表结构和源库保持一致。
- 完成后在任务列表中,单击任务对应操作列的“续传”,重新提交任务。