Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5165

Prepared XA transaction locks are not kept across DB restart

    XMLWordPrintableJSON

Details

    • Urgent
    • High Value Fix, Repro attached
    • Deviation from standard

    Description

      Steps to reproduce:

      1-perform update with XA, using, say Xid xid1
      2-prepare xid1 with XA but do NOT commit
      3-restart Derby DB
      4-the updates of step 1 will be visible

      When xid1 is rolled back after step 3 then the updates are gone. So my conclusion is that the transaction is not committed yet, but the updates are visible after prepare. This is a violation of the XA semantics.

      Attachments

        1. Derby5165.java
          3 kB
          Knut Anders Hatlen
        2. DERBY-5165Test.diff
          8 kB
          Myrna van Lunteren

        Issue Links

          Activity

            People

              mikem Mike Matrigali
              guypardon Guy Pardon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: