[infinispan-issues] [JBoss JIRA] (ISPN-1731) Threads waiting for key locks should not block state transfer

Mircea Markus (JIRA) jira-events at lists.jboss.org
Fri Sep 21 09:52:35 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus updated ISPN-1731:
--------------------------------

        Parent: ISPN-2316
    Issue Type: Sub-task  (was: Task)

    
> Threads waiting for key locks should not block state transfer
> -------------------------------------------------------------
>
>                 Key: ISPN-1731
>                 URL: https://issues.jboss.org/browse/ISPN-1731
>             Project: Infinispan
>          Issue Type: Sub-task
>          Components: State transfer
>    Affects Versions: 5.0.1.FINAL, 5.1.0.CR3
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>             Fix For: 5.2.0.Final
>
>
> A write/lock command holds the state transfer lock for its entire duration, including while waiting to acquire key locks. Because of this, we can get a deadlock scenario:
> 1. Tx1 waits for key k1 while holding the state transfer lock
> 2. State transfer waits for Tx1 while blocking new write commands
> 3. Tx2 waits for state transfer to end while holding the k1 lock
> The only way out of this scenario at the moment is for Tx1 to time out and fail to acquire the lock. We should make it possible to release the state transfer lock temporarily and return to waiting for the key lock after state transfer has ended.
> ISPN-1424 might make this issue obsolete.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list