[Bug]: 'on fail' block not triggered within a transaction #41192
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
I've encountered an issue while working with transactions in Ballerina involving two MySQL databases. The 'on fail' block is not being executed even when there is an error with commit/rollback operations of a transaction. Here is a simplified version of the code that demonstrates the problem:
Here I'm manually stopping the SQL server service during sleep to fail the "commit". I get the following error message but it is not caught by the 'on fail' block.
Steps to Reproduce
Affected Version(s)
2201.7.0 (Swan Lake Update 7)
OS, DB, other environment details and versions
Windows, MySQL Server
Related area
-> Runtime
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: