AnsweredAssumed Answered

Job rollbacked

Question asked by mlagneaux on Feb 2, 2015
Latest reply on Feb 6, 2015 by mrogers
Hello,

I've a problem with one of my Alfresco jobs. The aim of this job is to synchronize Alfresco users and groups from an XML export. This job executes a composite action on the XML file and the composite action is made of the following actions:
- Manage user deletions
- Manage user updates
- Manage user creations
- Manage groups (creation, deletion, manage members)

In my case, the job is rollbacked. But there's no exception thrown during the execution (I tried to surround my code in each action with a try/catch on Exception).
I've set the log level to debug for RetryingTransactionHelper and SpringAwareUserTransaction classes and added debug messages in AbstractScheduledAction  and ActionServiceImpl classes but it didn't help me. My transaction status is set to to STATUS_MARKED_ROLLBACK but I can't figure out why.
In RetryingTransactionHelper, the following test is true :

if (txn.getStatus() == Status.STATUS_MARKED_ROLLBACK)


Do you know how the transaction status can be set to STATUS_MARKED_ROLLBACK?
Are there any other classes to set to debug ?

Morevoer, during the process, I've different warnings related to cache :

2014-12-17 16:07:58,621  WARN  [org.alfresco.userToAuthorityTransactionalCache] [DefaultScheduler_Worker-2] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (100).
2014-12-17 16:07:59,648  WARN  [org.alfresco.authenticationTransactionalCache] [DefaultScheduler_Worker-2] Transactional removal cache 'org.alfresco.authenticationTransactionalCache' is full (100).

Since this is only warnings related to cache, I don't think this is important in my case.

Thanks in advance for your help.

Outcomes