Defect #1822
closedHrEndContractProcess and HrEnableContractProcess process wrong items (some duplicate, some too late)
100%
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
Related issues
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)
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?
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.
Updated by Radek Tomiška over 5 years ago
- Status changed from Resolved to Closed
- % Done changed from 90 to 100
Updated by Radek Tomiška over 5 years ago
- Related to Defect #1734: Identity is incorrectly valid added
Updated by Radek Tomiška about 5 years ago
- Related to Priority task #1872: Add default sort by ID to all services added
Updated by Radek Tomiška almost 5 years ago
- Related to Defect #1840: Duplicities in processed automatic roles and processed items from LongRunningTask added