Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12040

Backport OPENIDM-11174: Unable to resume scheduler jobs after successful pause

    Details

      Description

      To reproduce this issue, create a liveSync or reconcile schedule. Clear schedulerobjects and schedulerobjectproperties, just to make sure there are no residue entries if this is not a new IDM setup.

      Start IDM, (1) verify the scheduled job shows up in /openidm/scheduler/job?_queryId=query-all-ids, (2) post /openidm/scheduler/job?_action=pauseJobs, and verify the success result is returned, (3) post /openidm/scheduler/job?_action=resumeJobs and this command ends up hanging. FINEST logging shows the following information:

      FINE: Update existing object scheduler/jobGroups/scheduler-service-group rev: 2 db id: 14, object type db id: 13
      Jun 19, 2018 3:32:35 PM org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService handleUpdate
      FINE: ResourceException in update of scheduler/jobGroups/scheduler-service-group
      org.forgerock.json.resource.PreconditionFailedException: Update rejected as current Object revision 2 is different than expected by caller (1), the object has changed since retrieval.
      	at org.forgerock.openidm.repo.jdbc.impl.GenericTableHandler.update(GenericTableHandler.java:695)
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.handleUpdate(JDBCRepoService.java:444)
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.update(JDBCRepoService.java:506)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.updateGroupWrapper(RepoJobStore.java:530)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.pauseOrResumeGroupWrapper(RepoJobStore.java:1041)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.resumeTriggerGroup(RepoJobStore.java:1374)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.resumeAll(RepoJobStore.java:1297)
      	at org.quartz.core.QuartzScheduler.resumeAll(QuartzScheduler.java:1335)
      	at org.quartz.impl.StdScheduler.resumeAll(StdScheduler.java:471)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                mark.offutt Mark Offutt [X] (Inactive)
                QA Assignee:
                Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: