[jboss-jira] [JBoss JIRA] (JGRP-1912) LockService can fail under heavy load

Bela Ban (JIRA) issues at jboss.org
Tue Feb 17 11:52:49 EST 2015


    [ https://issues.jboss.org/browse/JGRP-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041000#comment-13041000 ] 

Bela Ban commented on JGRP-1912:
--------------------------------

A {{tryLock()}} can always fail (timeout) on high load. So why do you consider this an error ?
If you run with {{lock()}} instead, you shouldn't see any errors. But make sure you want until all workers have completed.

> LockService can fail under heavy load
> -------------------------------------
>
>                 Key: JGRP-1912
>                 URL: https://issues.jboss.org/browse/JGRP-1912
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: both windows 8.1 and RHEL
> java 1.7.0_75
>            Reporter: Chris Gentile
>            Assignee: Bela Ban
>             Fix For: 3.6.3
>
>         Attachments: LockServiceTestClient.java, LockServiceTestClient.java, logFile, runLockServiceTestClient.sh, udp.xml
>
>
> Once in awhile, the LockService will get stuck acquiring a lock.
> These seems to occur most often when two threads are simultaneously trying to acquire the same lock. (i.e.:  exact same millisecond on a server with multiple processors).



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list