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

Locks not released when using the lock API in a read-only transaction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 5.1.0.CR1
    • 5.1.0.BETA5
    • Transactions
    • None

    Description

      tm.begin();
      cache.getAdvancedCache().lock("k");
      tm.commit(); 
      
      assertNotLocked("k"); //this fails!!!
      

      this transaction doesn't do any write, and we have an optimization in place to skip remote calls if we don't do any write.

      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: