Please answer some questions before submitting your issue. Thanks!
Which version of XXL-JOB do you using?
2.3.0
双机部署,有概率重复save
int ret = XxlJobAdminConfig.getAdminConfig().getXxlJobLogReportDao().update(xxlJobLogReport);
if (ret < 1) { //可能两台机器同时判断成立,导致异常Duplicate entry '2021-11-30 00:00:00' for key 'i_trigger_day'
XxlJobAdminConfig.getAdminConfig().getXxlJobLogReportDao().save(xxlJobLogReport);
}
暂无答案!
目前还没有任何答案,快来回答吧!