Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1576

Hibernate TransactionSynch should rollback transaction on session.flush exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-4.0.2 Final
    • JBossAS-4.0.0 Final, JBossAS-4.0.1RC1, JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1
    • JPA / Hibernate
    • None

    Description

      org.jboss.hibernate.session.TransactionSynch only logs a error on session flush in beforeCompletion:
      try

      { log.trace("Flushing Session"); session.flush(); }

      catch(Throwable t)

      { log.warn("Error flushing session"); }

      This leads to inconsistent transactions. A transaction is commited, but should be rollbacked on a session.flush problem. In my opinion it should throw a RuntimeException to rollback the transaction.

      Attachments

        Activity

          People

            sebersole Steve Ebersole (Inactive)
            arminhaaf Armin Haaf (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: