1、问题描述
发现日志中每天都会有这个错误:
java.sql.SQLException: Table definition has changed, please retry xx
; uncategorized SQLException; SQL state [HY000]; error code [1412]; Table definition has changed, please retry xxx; nested exception is java.sql.SQLException: Table definition has changed, please retry xxx
2、问题解决
并且都在一个时间端发生的,查看数据表后发现是因为对表做了分区处理导致出现这个问题!!主要是检查对要处理的表有没有额外的操作导致出现这个问题!
这里面也有很详细的分析
https://bugs.mysql.com/bug.php?id=65378