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

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


Bela Ban created JGRP-1949:
------------------------------

             Summary: 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