Project

General

Profile

Defect #1431

Asynchronous provisioning and ProvisioningQueueTaskExecutor doesn't execute provisioning operation

Added by Ondřej Kopr 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Provisioning
Target version:
Start date:
12/20/2018
Due date:
% Done:

100%


Description

It is really hard to debug and simulate. But there is use case:

On enviroment is enabled asynchronous provisioning for system and LRT ProvisioningQueueTaskExecutor has the cron 0 0/1 * * * ? (every minute).
While LRT start execute provisioning queue and some process or user create new items for same queue. The next execution of LRT ProvisioningQueueTaskExecutor doesn't process new operation in queue and these operations still exists in Create state. Manually executions works good.

This is little bit problem for synchronization because while update entity it will be throw many new operations and these operation it will not nevermore executed.

Maybe problem with staful LRTs.

Locally I can simulate exactly same behavior.

Affected versions: probably all from Asynchronous provisioning feature.
Tested version: 9.3.*

test.gif View (667 KB) Ondřej Kopr, 01/11/2019 09:55 AM

History

#2 Updated by Radek Tomiška 5 months ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška

#4 Updated by Radek Tomiška 5 months ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • Target version set to Onyx (9.3.3)
  • % Done changed from 0 to 90

I was able to find and fix this issue - it was related to stateful task executors and i had to add synchronization blocks into provisioning executor (insert vs. process the queue).

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/0fbe00b85c9b898388abd3c38b13d4b232b6e0b6#diff-463b9b1794a09ba59e96c4cbafe1b49d

Could you do a feedback please?

#5 Updated by Ondřej Kopr 4 months ago

  • File test.gif View added
  • Status changed from Needs feedback to Resolved
  • Assignee changed from Ondřej Kopr to Radek Tomiška
  • % Done changed from 90 to 100

Awesome, thank you for fix this issue. I tested exactly same behavior and now it works now. Second run successfully processed all items in provisioning queue. Thank you.

#6 Updated by Radek Tomiška 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF