lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Heidrich (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1555) Deadlock while optimize
Date Wed, 11 Mar 2009 08:24:50 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680795#action_12680795
] 

Stefan Heidrich commented on LUCENE-1555:
-----------------------------------------

It seems that the IndexWriter tries to lock two times. 

"Lucene Merge Thread #0" daemon prio=1 tid=0x08a7d3c8 nid=0x229a waiting for monitor entry
[0x8ae78000..0x8ae78dc0]
	at org.apache.lucene.index.IndexWriter.commitMerge(IndexWriter.java:3758)
	- waiting to lock <0x918d4790> (a org.apache.lucene.index.IndexWriter)
	at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4243)
	at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
	at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)


"Indexer" prio=1 tid=0x08b6a7f0 nid=0x221c waiting on condition [0x8af92000..0x8af92dc0]
	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.<init>(Throwable.java:181)
	at java.lang.Exception.<init>(Exception.java:29)
	at java.lang.InterruptedException.<init>(InterruptedException.java:31)
	at java.lang.Object.wait(Native Method)
	at org.apache.lucene.index.IndexWriter.doWait(IndexWriter.java:4494)
	- locked <0x918d4790> (a org.apache.lucene.index.IndexWriter)
	at org.apache.lucene.index.IndexWriter.finishMerges(IndexWriter.java:2809)
	- locked <0x918d4790> (a org.apache.lucene.index.IndexWriter)
	at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1647)
	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1602)
	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1578)
	at com.inet.helpdesk.search.Indexer.indiziereBuendel(Indexer.java:542)
	at com.inet.helpdesk.search.Indexer.indexBuendel(Indexer.java:353)
	at com.inet.helpdesk.search.Indexer.run(Indexer.java:243)


> Deadlock while optimize
> -----------------------
>
>                 Key: LUCENE-1555
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1555
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.4
>         Environment: ubuntu 8.04, java 1.6 update 07, Lucene 2.4.0
>            Reporter: Stefan Heidrich
>            Assignee: Michael McCandless
>
> Sometimes after starting the thread with the indexer, the thread will hang in the following
threads.
> Thread [Lucene Merge Thread #0] (Ausgesetzt)	
> 	IndexWriter.commitMerge(MergePolicy$OneMerge, SegmentMerger, int) Line: 3751	
> 	IndexWriter.mergeMiddle(MergePolicy$OneMerge) Line: 4240	
> 	IndexWriter.merge(MergePolicy$OneMerge) Line: 3877	
> 	ConcurrentMergeScheduler.doMerge(MergePolicy$OneMerge) Line: 205	
> 	ConcurrentMergeScheduler$MergeThread.run() Line: 260	
> Thread [Indexer] (Ausgesetzt)	
> 	Object.wait(long) Line: not available [native Methode]	
> 	IndexWriter.doWait() Line: 4491	
> 	IndexWriter.optimize(int, boolean) Line: 2268	
> 	IndexWriter.optimize(boolean) Line: 2203	
> 	IndexWriter.optimize() Line: 2183	
> 	Indexer.run() Line: 263	
> If you need more informations, please let me know.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message