java - 为什么石英无法创建/删除作业?
问题描述
需要修复 Spring 应用程序中一些不会在本地出现的石英相关异常。
org.quartz.JobPersistenceException: Couldn't remove job: ERROR: update or delete on table "qrtz_job_details" violates foreign key constraint "qrtz_triggers_sched_name_fkey" on table "qrtz_triggers"
Detail: Key (sched_name, job_name, job_group)=(job_creator, jobKind:112518, DEFAULT) is still referenced from table "qrtz_triggers". [See nested exception: org.postgresql.util.PSQLException: ERROR: update or delete on table "qrtz_job_details" violates foreign key constraint "qrtz_triggers_sched_name_fkey" on table "qrtz_triggers"
Detail: Key (sched_name, job_name, job_group)=(job_creator, jobKind:112518, DEFAULT) is still referenced from table "qrtz_triggers".]
org.quartz.JobPersistenceException: Couldn't store trigger 'DEFAULT.jobKind:112509' for 'DEFAULT.jobKind:112509' job:ERROR: insert or update on table "qrtz_triggers" violates foreign key constraint "qrtz_triggers_sched_name_fkey"
Detail: Key (sched_name, job_name, job_group)=(job_creator, jobKind:112509, DEFAULT) is not present in table "qrtz_job_details". [See nested exception: org.postgresql.util.PSQLException: ERROR: insert or update on table "qrtz_triggers" violates foreign key constraint "qrtz_triggers_sched_name_fkey"
Detail: Key (sched_name, job_name, job_group)=(job_creator, jobKind:112509, DEFAULT) is not present in table "qrtz_job_details".]]
在存储触发器/删除作业时,似乎作业和触发器之间存在某种不同步。有没有人遇到过这样的问题?查看提到的表时,所有记录/约束都匹配
解决方案
推荐阅读
- php - DICOM 工作列表在 DCMTK wlmscpfs 中返回不匹配
- r-markdown - 我想用 Rmarkdown 写 Rmarkdown 代码
- conditional-statements - 以下方案功能如何准确工作?
- button - 当我点击后退箭头图标时如何显示插页式广告
- java - 从 Tally 导出收据数据
- python - Group by + New Column + 根据条件获取前一行的值
- google-cloud-platform - 无法在印度创建 GCP 虚拟机实例
- openlayers - Openlayers Pbf 矢量切片性能不佳
- nestjs - 在 monorepo 中带有共享库的 Nestjs
- android - 如何正确处理滑动删除和撤消?