Project

General

Profile

Actions

Defect #2686

closed

Synchronization of identities and contracts sometimes left Waiting tasks (-> next synchronization failed to start HR processes)

Added by Alena Peterová almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Synchronization
Target version:
Start date:
02/12/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Tested on 10.7.2, happened also on 10.7.0.

After synchronization of identities + contracts, which created 1 new identity with some automatic roles, some of the tasks (HrEnableContractProcess, HrEndContractProcess, or ProcessAllAutomaticRoleByAttributeTaskExecutor) stayed as "Waiting" in the Scheduler. Next synchronization wasn't able to start them => failed.

My testing data are the same as in Squash (or #2636), only the synchronizations are set as "Reconcilation". Synchronization of contracts is scheduled as dependent on synchronization of identities. I start this Synchronization task manually.

The problematic situation happened 4x in a row, with a bit different combination of Waiting tasks - see screenshots. Then I tested it 3x with 2 identities in source data and all was correct. Then I removed one of them and tested again 4x in a row - now all correct.

Details:
  • This 1st synchronization created a new identity. The synchronization, HrEnableContractProcess, HrEndContractProcess is Waiting.
  • Cancel tasks, remove the identity, run synchronizations again. Now ProcessAllAutomaticRoleByAttributeTaskExecutor is Waiting and synchronization of contracts fails, because it can't start it again.
  • Cancel tasks, remove the identity, run synchronizations again. (ProcessSkippedAutomaticRoleByTreeForContract processes more flags, probably because it didn't start in the previous run.)

  • Cancel tasks, remove the identity, run synchronizations again. Now the result was the same as in the 1st case
  • Make some more tests with 2 identities, no problem.
  • Return to the original data, run synchronization - now all is green

Files

correct.png (80.5 KB) correct.png Alena Peterová, 02/12/2021 06:46 PM
ProcessSkippedAutomaticRoleByTreeForContract_detail.png (51.6 KB) ProcessSkippedAutomaticRoleByTreeForContract_detail.png Alena Peterová, 02/12/2021 06:46 PM
waiting_tasks.png (79.1 KB) waiting_tasks.png Alena Peterová, 02/12/2021 06:46 PM
waiting_tasks_2.png (79.6 KB) waiting_tasks_2.png Alena Peterová, 02/12/2021 06:46 PM
waiting_tasks_3.png (77.7 KB) waiting_tasks_3.png Alena Peterová, 02/12/2021 06:46 PM
without_automatic_roles_after_identities.png (84.3 KB) without_automatic_roles_after_identities.png Alena Peterová, 02/18/2021 10:16 AM
events.png (158 KB) events.png Alena Peterová, 02/18/2021 10:16 AM

Related issues

Related to IdStory Identity Manager - Task #2444: Implement waiting for the completion of the LRT after all asynchronous eventsClosedRadek Tomiška08/18/2020

Actions
Related to IdStory Identity Manager - Defect #2743: Event: Start event remains in running state, when long running task ends with exception.ClosedRadek Tomiška03/31/2021

Actions
Actions

Also available in: Atom PDF