Project

General

Profile

Actions

Defect #1705

closed

Check running operation for same automatic role (recount automatic role task ends with exception, after last rule is removed)

Added by Ondřej Kopr almost 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Automatic roles
Target version:
Start date:
06/05/2019
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Please disallows running two and more operations for same automatic role. For example I remove last rule for automatic roles this operation execute one LRT with remove identity roles. Immediate after this operation i create new request for same automatic role with add some new rules. This operation execute another LRT for same role.

This beahvior can throw exception with deadlocks on database or some strange behavior during assign new roles.

< 2019-06-05 07:46:43.051 CEST > DETAIL:  parameters: $1 = 'idm-primary', $2 = 'CREATED'
< 2019-06-05 07:46:55.257 CEST > ERROR:  deadlock detected
< 2019-06-05 07:46:55.257 CEST > DETAIL:  Process 30697 waits for ExclusiveLock on tuple (17,48) of relation 2279145 of database 2277391; blocked by process 6652.
        Process 6652 waits for ShareLock on transaction 50256652; blocked by process 4554.
        Process 4554 waits for ShareLock on transaction 50256058; blocked by process 30697.
        Process 30697: update idm_auto_role_request

Related issues

Related to IdStory Identity Manager - Task #1801: Upgrade backend dependenciesClosedRadek Tomiška08/16/2019

Actions
Actions

Also available in: Atom PDF