SQL state [HY000]; error code [1412]; Table definition has changed, please retry table

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章