[
https://issues.jboss.org/browse/JGRP-1660?page=com.atlassian.jira.plugin....
]
Architect SoftWeb.ISD edited comment on JGRP-1660 at 7/18/13 6:05 AM:
----------------------------------------------------------------------
lockservice_stability_testcase.jar attachment is added.
It is test.
The test is hardcoded to work during 20 seconds with 15 threads.
Java source is inside of the attachment.
We are able to reproduce the problem under MyEclipse IDE with 2 threads in 4 seconds.
But in case of simple JVM start it is not reproducible sometimes even with 15 threads and
in 20 seconds.
Command line:
\jdk1.6.0_31\jre\bin\java.exe -cp
junit-4.4.jar;jgroups-3.2.4.Final.jar;log4j-1.2.15.jar;lockservice_stability_testcase.jar
org.junit.runner.JUnitCore
com.softcomputer.softweb.infl.commons.clustering.stabilitytest.LockServiceStabilityTestCase
Dependencies:
jgroups-3.2.4.Final.jar (with jgroups-3.3.3.Final the situation is the same)
junit-4.4.jar
log4j-1.2.15.jar (log4j.xml is inside. It creates test.trace file)
was (Author: architect.softweb.isd):
It is test.
The test is hardcoded to work during 20 seconds with 15 threads.
Java source is inside of the attachment.
We are able to reproduce the problem under MyEclipse IDE with 2 threads in 4 seconds.
But in case of simple JVM start it is not reproducible sometimes even with 15 threads and
in 20 seconds.
Command line:
\jdk1.6.0_31\jre\bin\java.exe -cp
junit-4.4.jar;jgroups-3.2.4.Final.jar;log4j-1.2.15.jar;lockservice_stability_testcase.jar
org.junit.runner.JUnitCore
com.softcomputer.softweb.infl.commons.clustering.stabilitytest.LockServiceStabilityTestCase
Dependencies:
jgroups-3.2.4.Final.jar (with jgroups-3.3.3.Final the situation is the same)
junit-4.4.jar
log4j-1.2.15.jar (log4j.xml is inside. It creates test.trace file)
LockService hangs during concurrent access
(tryLock/tryLock(timeout)/lock/unlock)
---------------------------------------------------------------------------------
Key: JGRP-1660
URL:
https://issues.jboss.org/browse/JGRP-1660
Project: JGroups
Issue Type: Bug
Affects Versions: 3.2.4, 3.3.3
Environment: Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
6GB RAM
Windows 7
JRE 1.6.31
Reporter: Architect SoftWeb.ISD
Assignee: Bela Ban
Priority: Critical
Attachments: lockservice_stability_testcase.jar
We have rather simple test that starts some amount of threads which in turn
simultaneously obtain lock through LockService#getLock then perform lock and unlock.
Each thread works during some time.
After couple of seconds of work some threads just hang up in
Locking$ClientLock(Object).wait() called indirectly from LockService$LockImpl.tryLock().
Here is stack trace:
Thread [Thread-ClientImitation-1] (Suspended)
Object.wait(long) line: not available [native method]
Locking$ClientLock(Object).wait() line: 485
Locking$ClientLock.acquireTryLock(long, boolean) line: 1010
Locking$ClientLock.tryLock() line: 896
CENTRAL_LOCK(Locking).down(Event) line: 152
ProtocolStack.down(Event) line: 1025
JChannel.down(Event) line: 718
LockService$LockImpl.tryLock() line: 102
LockServiceStabilityTestCase$ClientImitation.run() line: 167
Thread.run() line: 662
--
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