Project

General

Profile

Actions

Defect #1822

closed

HrEndContractProcess and HrEnableContractProcess process wrong items (some duplicate, some too late)

Added by Alena Peterová over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Radek Tomiška
Category:
Contractual relationship
Target version:
Start date:
08/26/2019
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Version 9.7.4
We started HR processes repeatedly, no other LRT or synchronization is running, no entity event is running, but the HR processes process different number or items.

I found out two problems, they are probably connected:

A) The contract is processed too late
1) First run of HrEndContractProcess processed 5 items and one of the contracts, which ended yesterday, wasn't there:

2) Second run processed much more items and the contract was finally there. But this is too late, normally HrEndContractProcess runs only once a day.

B) Repeated processing of contracts, that were already processed.
Number of contracts in the queue is chaotic:


Files

all_tasks.png (61.6 KB) all_tasks.png Alena Peterová, 08/26/2019 04:50 PM
hrenable_second_run.png (80.7 KB) hrenable_second_run.png Alena Peterová, 08/26/2019 04:50 PM
hrend_firstrune.png (37.7 KB) hrend_firstrune.png Alena Peterová, 08/26/2019 04:50 PM
hrend_secondrun.png (27.4 KB) hrend_secondrun.png Alena Peterová, 08/26/2019 04:50 PM
hrenable_first_run.png (78.4 KB) hrenable_first_run.png Alena Peterová, 08/26/2019 04:50 PM

Related issues

Related to IdStory Identity Manager - Defect #1734: Identity is incorrectly validClosedVít Švanda06/27/2019

Actions
Related to IdStory Identity Manager - Priority task #1872: Add default sort by ID to all servicesClosedRadek Tomiška09/24/2019

Actions
Related to IdStory Identity Manager - Defect #1840: Duplicities in processed automatic roles and processed items from LongRunningTaskRejectedRadek Tomiška09/06/2019

Actions
Actions #1

Updated by Alena Peterová over 5 years ago

  • Subject changed from HrEndContractProcess and HrEnableContractProcess process wrong items (some duplicite, some not) to HrEndContractProcess and HrEnableContractProcess process wrong items (some duplicate, some too late)
Actions #2

Updated by Radek Tomiška over 5 years ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • Priority changed from High to Urgent
  • Target version set to Rhyolite (9.7.5)
  • % Done changed from 0 to 90

It was hard to reproduce, but i found the cause - sort was missing for find contracts to process => next pages can return already processed items and skip some other (randomly).
I checked all product provided LRTs and fixed them.

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/5492d78a15f7a4f3ea59d2dae0d51e8eca6ed523

Could you do a feedback, please?

Actions #3

Updated by Vít Švanda over 5 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška

I did reivew. Thank for this important fix.

Actions #4

Updated by Radek Tomiška over 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 90 to 100
Actions #5

Updated by Radek Tomiška over 5 years ago

  • Related to Defect #1734: Identity is incorrectly valid added
Actions #6

Updated by Radek Tomiška about 5 years ago

Actions #7

Updated by Radek Tomiška almost 5 years ago

  • Related to Defect #1840: Duplicities in processed automatic roles and processed items from LongRunningTask added
Actions

Also available in: Atom PDF