Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-1634

In XA transaction session.addLockToken() does not have effect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: core 1.4.4
    • Fix Version/s: 1.6
    • Component/s: jackrabbit-core
    • Labels:
      None
    • Environment:
      Jackrabbit Core 1.4.4, Jencks 2.0, Springmodules 0.8a, Jackrabbit JCA 1.4

      Description

      Following sequence does not work as expected:
      1. first tx (and first session)
      create node
      make it lockable
      2. second tx (and second session)
      lock this node and save lock token
      3. third tx (and third session)
      add saved lock token to session
      modify this locked node -> fails as if lock token was not added to session3

      The same sequence works as expected without transactions.
      I had to separate transactions 1 and 2 because JCR-1633 prevents node from being locked in same tx in which it was created.

      1. patch2.txt
        10 kB
        Claus Köll
      2. test-external-lock-in-tx.zip
        6 kB
        Roman Puchkovskiy

        Activity

        Roman Puchkovskiy created issue -
        Roman Puchkovskiy made changes -
        Field Original Value New Value
        Attachment test-external-lock-in-tx.zip [ 12383122 ]
        Claus Köll made changes -
        Assignee Claus Köll [ c_koell ]
        Claus Köll made changes -
        Attachment patch2.txt [ 12407530 ]
        Claus Köll made changes -
        Component/s locks [ 11615 ]
        Component/s transactions [ 11616 ]
        Claus Köll made changes -
        Attachment patch2.txt [ 12407752 ]
        Claus Köll made changes -
        Attachment patch2.txt [ 12407530 ]
        Claus Köll made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6.0 [ 12313459 ]
        Resolution Fixed [ 1 ]
        Jukka Zitting made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Jukka Zitting made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jukka Zitting made changes -
        Workflow jira [ 12432220 ] no-reopen-closed, patch-avail [ 12468083 ]
        Jukka Zitting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Claus Köll
            Reporter:
            Roman Puchkovskiy
          • Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development