xxl-job admin集群部署并发问题

icnyk63a  于 2021-11-30  发布在  Java
关注(0)|答案(0)|浏览(444)

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);
                        }

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题