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