[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-393?pag...
]
strong liu commented on HSEARCH-393:
------------------------------------
from Juca
--------------------------------------
Please find below a thread dump from a "hanged" process. Also, I watched the
database and didn't find any locks there. There are a variable amount of databases
processes belonging to the test case, but none of them are "locking" any table /
record (ie: no records in "v$lock" table in oracle displays "1" in the
"block" column). As per the Thread Dump, it seems it is stuck in some infinite
loop (Thread.sleep inside a while, on ReaderPerfTestCase).
[junit] 2009-08-12 06:28:16
[junit] Full thread dump Java HotSpot(TM) Client VM (14.1-b02 mixed mode):
[junit] "pool-2-thread-1" prio=10 tid=0x082b1c00 nid=0x348c waiting on
condition [0xab13a000]
[junit] java.lang.Thread.State: WAITING (parking)
[junit] at sun.misc.Unsafe.park(Native Method)
[junit] - parking to wait for <0xabf64378> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
[junit] at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
[junit] at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
[junit] at
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
[junit] at
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
[junit] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[junit] at java.lang.Thread.run(Thread.java:619)
[junit] "pool-1-thread-1" prio=10 tid=0x082b0800 nid=0x348b waiting on
condition [0xab18b000]
[junit] java.lang.Thread.State: WAITING (parking)
[junit] at sun.misc.Unsafe.park(Native Method)
[junit] - parking to wait for <0xabf65488> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
[junit] at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
[junit] at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
[junit] at
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
[junit] at
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
[junit] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[junit] at java.lang.Thread.run(Thread.java:619)
[junit] "Low Memory Detector" daemon prio=10 tid=0x080c0c00 nid=0x3487
runnable [0x00000000]
[junit] java.lang.Thread.State: RUNNABLE
[junit] "CompilerThread0" daemon prio=10 tid=0x080bd800 nid=0x3486 waiting on
condition [0x00000000]
[junit] java.lang.Thread.State: RUNNABLE
[junit] "Signal Dispatcher" daemon prio=10 tid=0x080bc000 nid=0x3485 waiting
on condition [0x00000000]
[junit] java.lang.Thread.State: RUNNABLE
[junit] "Finalizer" daemon prio=10 tid=0x080a9400 nid=0x3484 in Object.wait()
[0xab6b9000]
[junit] java.lang.Thread.State: WAITING (on object monitor)
[junit] at java.lang.Object.wait(Native Method)
[junit] - waiting on <0xabedb270> (a java.lang.ref.ReferenceQueue$Lock)
[junit] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
[junit] - locked <0xabedb270> (a java.lang.ref.ReferenceQueue$Lock)
[junit] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
[junit] at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
[junit] "Reference Handler" daemon prio=10 tid=0x080a7c00 nid=0x3483 in
Object.wait() [0xab70a000]
[junit] java.lang.Thread.State: WAITING (on object monitor)
[junit] at java.lang.Object.wait(Native Method)
[junit] - waiting on <0xabedb2f8> (a java.lang.ref.Reference$Lock)
[junit] at java.lang.Object.wait(Object.java:485)
[junit] at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
[junit] - locked <0xabedb2f8> (a java.lang.ref.Reference$Lock)
[junit] "main" prio=10 tid=0x0805c000 nid=0x3481 sleeping[0xb7743000]
[junit] java.lang.Thread.State: TIMED_WAITING (sleeping)
[junit] at java.lang.Thread.sleep(Native Method)
[junit] at
org.hibernate.search.test.reader.ReaderPerfTestCase.testConcurrency(Unknown Source)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:154)
[junit] at org.hibernate.search.test.TestCase.runTest(Unknown Source)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
[junit] "VM Thread" prio=10 tid=0x080a3c00 nid=0x3482 runnable
[junit] "VM Periodic Task Thread" prio=10 tid=0x080d4800 nid=0x3488 waiting
on condition
[junit] JNI global references: 1007
[junit] Heap
[junit] def new generation total 2048K, used 1242K [0xab9e0000, 0xabc10000,
0xabec0000)
[junit] eden space 1856K, 66% used [0xab9e0000, 0xabb14a48, 0xabbb0000)
[junit] from space 192K, 3% used [0xabbe0000, 0xabbe1e50, 0xabc10000)
[junit] to space 192K, 0% used [0xabbb0000, 0xabbb0000, 0xabbe0000)
[junit] tenured generation total 25596K, used 16020K [0xabec0000, 0xad7bf000,
0xaf9e0000)
[junit] the space 25596K, 62% used [0xabec0000, 0xace65210, 0xace65400,
0xad7bf000)
[junit] compacting perm gen total 14080K, used 13835K [0xaf9e0000, 0xb07a0000,
0xb39e0000)
[junit] the space 14080K, 98% used [0xaf9e0000, 0xb0762ca0, 0xb0762e00,
0xb07a0000)
[junit] No shared spaces configured.
unit test of the NotSharedReaderPerfTest hangs on with some database
--------------------------------------------------------------------
Key: HSEARCH-393
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-393
Project: Hibernate Search
Issue Type: Bug
Environment: oracle, postqresql and sybase
Reporter: strong liu
Assignee: Emmanuel Bernard
the unit test of NotSharedReaderPerfTest hangs on some of databases like oracle / sybase
/ postqresql, and I tried change the "ulimit -n" to 100000, but still hangs on.
as discussed in the email, This doesn't sound like it is the same issue as
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-189.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira