Retryable within transaction

30 Views Asked by At

I am experiencing a RollbackException being thrown when closing a transaction. For some context, during this transactional there is a retry attempt which is successful.

The structure is like below but not exact for simplicity..

@Transactional
void parentLevel(){
    childLevel() 
}


@Retryable
@Transactional
void childLevel(){
}

I am assuming that I should simply place the @Retryable on the parent level method as I am playing with fire by retrying within a transactional (I assume this is the issue) but this would require major amounts of changes (concurrency occurs, etc) so I am trying to see if there is an alternative before beginning these changes.

0

There are 0 best solutions below