[jboss-jira] [JBoss JIRA] (JGRP-1949) LockService: tryLock() can wait forever

Bela Ban (JIRA) issues at jboss.org
Tue Aug 4 10:57:03 EDT 2015


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

Bela Ban resolved JGRP-1949.
----------------------------
    Resolution: Done


> LockService: tryLock() can wait forever
> ---------------------------------------
>
>                 Key: JGRP-1949
>                 URL: https://issues.jboss.org/browse/JGRP-1949
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 3.6.5
>
>
> When the {{ClientLock.acquireTryLock()}} method converts ns to ms, the resulting input can be 0, which leads to a {{wait(0)}}, which will wait forever.
> SOLUTION: convert to ms before and skip the wait if 0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list