xxl-job 登录进去报错

org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'suc_count' from result set. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '2.209011753E9' in column '2' is outside valid range for the datatype INTEGER.
; '2.209011753E9' in column '2' is outside valid range for the datatype INTEGER.; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '2.209011753E9' in column '2' is outside valid range for the datatype INTEGER.
思路
当看到这个报错,第一反应是某个任务一直在跑,导致数据库suc_count 这个字段超出int范围。后来查找了一遍数据库的cron表,没发现有很频繁的任务。
打开网页发现了这个数字有点接近

后来想到可能是代码层抛出的这个错误,在前端页面展示的时候长度溢出了。于是去count了一下suc_count字段。清空了一些数据之后果然正常了。

浙公网安备 33010602011771号