java.jdbc

Transaction not rolled back on Throwable exception

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

(transaction
(insert-values .....)
(throw (Throwable. "baaaaad")))

Reported by Sebastián Galkin on github.

Transactions rollback on Exception but not Throwable.

  1. 0001-Don-t-commit-transaction-in-case-of-exceptions.patch
    12/Jul/11 11:05 AM
    1 kB
    Sebastián Bernardo Galkin
  2. test-mechanism.patch
    04/Jul/11 12:23 AM
    4 kB
    Sebastián Bernardo Galkin

Activity

Sebastián Bernardo Galkin made changes -
Field Original Value New Value
Attachment test-mechanism.patch [ 10269 ]
Sean Corfield made changes -
Summary Transaction not rolled back on exception Transaction not rolled back on Throwable exception
Description (transaction
  (insert-values .....)
  (throw (Throwable. "baaaaad")))

Reported by Sebastián Galkin on github.
(transaction
  (insert-values .....)
  (throw (Throwable. "baaaaad")))

Reported by Sebastián Galkin on github.

Transactions rollback on Exception but not Throwable.
Sebastián Bernardo Galkin made changes -
Sean Corfield made changes -
Status Open [ 1 ] Resolved [ 5 ]
Resolution Completed [ 1 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: