Madhan Neethiraj created RANGER-866:
---------------------------------------
Summary: Service delete fails with error 'XXService was updated or
deleted by another transaction'
Key: RANGER-866
URL: https://issues.apache.org/jira/browse/RANGER-866
Project: Ranger
Issue Type: Sub-task
Components: admin
Affects Versions: 0.6.0
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
When a service has associated service-resource and tag-resource-map objects,
deleting of the service fails with error "XXService was updated or deleted by
another transaction'.
This issue is caused the logic that updates service attributes tagVersion and
tagUpdateTime on changes in tags associated with the service. Current
implementation uses 'update statement', which does not seem to update XXService
instances in JPA's transaction cache. To fix this issue, use 'select statement'
to retrieve XXService objects and update the fields.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)