【发布时间】:2020-07-10 13:47:03
【问题描述】:
我正在使用相同参数同时在集群中运行批处理作业。虽然,它只在一个实例上运行很好,但我得到的例外是:
Detail: Key (job_name, job_key)=(offlineTicketRefreshJob, c5d36835a13fd8ae0e91a69a6fa1c2d8) already exists.; nested exception is org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "job_inst_un"
我期待它会给出 JobAlreadyRunningException 或其他。我认为隔离级别对于批处理作业存储库也是可序列化的,那么为什么它会给出 PSQLException?
【问题讨论】:
标签: java spring spring-boot spring-batch spring-scheduled