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

Client XA getTransactionIsolation() does not return the correct isolation level when rejoining a global transaction

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.1.3.1, 10.2.1.6
    • Network Client
    • None

    Description

      When rejoining a global transaction, client does not report the correct isolation level with a
      getTransactionIsolation(). The server side isolation should be ok I think.

      This was discovered when testing the fix for DERBY-1044. After the fix for DERBY-1044, there is a new diff in the test, but the fix for DERBY-1044 just exposed this issue. The output for the test was correct before by circumstance.

      I will put comments with this bug in checkDataSource test.

      // now re-join the transaction, should pick up the read-only
      // and isolation level from the transaction,
      // holdability remains that of this handle.
      xar.start(xid, XAResource.TMJOIN);
      printState("re-join X1", cs1);
      xar.end(xid, XAResource.TMSUCCESS);

      Attachments

        1. derby-1148_10.1.diff
          18 kB
          Deepa
        2. derby-1148_10.1.status
          0.5 kB
          Deepa
        3. derby-1148_v1.diff
          18 kB
          Deepa
        4. derby-1148_v1.status
          0.6 kB
          Deepa
        5. derby-1148_v2.diff
          18 kB
          Deepa
        6. derby-1148_v2.status
          0.6 kB
          Deepa
        7. derby-1148-draft1.diff
          5 kB
          Deepa
        8. derby-1148-draft1.status
          0.2 kB
          Deepa
        9. derby-1148-javadoc.diff
          0.6 kB
          Deepa
        10. SetIsolationUsingSQL.java
          4 kB
          Deepa
        11. XA_TransactionIsolation.html
          2 kB
          Deepa
        12. XACheckIsolation_2.java
          6 kB
          Deepa
        13. XACheckIsolation.java
          6 kB
          Deepa

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            deepa Deepa
            kmarsden Katherine Marsden
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment