Project

General

Profile

Actions

Defect #1431

closed

Asynchronous provisioning and ProvisioningQueueTaskExecutor doesn't execute provisioning operation

Added by Ondřej Kopr about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Provisioning
Target version:
Start date:
12/20/2018
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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.*


Files

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

Updated by Radek Tomiška almost 6 years ago

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

Updated by Radek Tomiška almost 6 years 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?

Actions #5

Updated by Ondřej Kopr almost 6 years ago

  • File test.gif test.gif 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.

Actions #6

Updated by Radek Tomiška almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF