Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-629

document transaction's state if an Exception occurs

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 4.2.0.ALPHA2, 4.2.0.Final
    • 4.1.0.Final
    • None
    • None

    Description

      It is not documented what happens with a transaction if a TImeoutException occurs while trying to acquire a lock.
      E.g.
      tm.begin()
      caceh.put(k1); //this throws TE - what would be the status of the transaction after TE is thrown?
      After discussing this on core, the suggestion was to make the transaction abort/rollback. This can be achieved by marking a tx as rollbackOnly.
      Tests need to be added to enforce this behaviour and and documentation needs to be updated.

      Attachments

        Activity

          People

            mircea.markus Mircea Markus (Inactive)
            mircea.markus Mircea Markus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: