[Bug]: "No transaction available to participate" Error After Rollback In Transactional Services #42239
Labels
Lang/Transactions
Ballerina Transaction and its implementation related issued
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
If a transaction were to rollback by an error in a service with a transactional endpoint, the following error message is observed in the participant service approximately ~60 seconds later:
This error causes the participant service to crash and it does not appear when a transaction commits successfully.
Participant's Full Log
Coordinator's Full Log
Steps to Reproduce
startTransaction
function that initiates a transaction.doTransactionalWork
transactional resource function with a database connection.doTransactionWork
in Service B.Minimal Code:
Service A (Coordinator)
Service B (Participant)
Affected Version(s)
Tested on 2201.8.4 with this fix. (same without the fix)
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: