[ https://issues.apache.org/jira/browse/LUCENE-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14621259#comment-14621259 ]
Michael McCandless commented on LUCENE-6670: -------------------------------------------- Thanks, this should be fixed by LUCENE-6579 ... I hit exactly the same deadlock and fixed it there by having CMS.sync skip waiting on the calling thread. > OOM error in merge causes deadlock > ---------------------------------- > > Key: LUCENE-6670 > URL: https://issues.apache.org/jira/browse/LUCENE-6670 > Project: Lucene - Core > Issue Type: Bug > Affects Versions: 5.2.1 > Reporter: Jeffrey Morlan > > Using the ConcurrentMergeScheduler, when merging catches an OutOfMemoryError > and tries to rollback, the merge thread ends up calling Thread.join on > itself, which will never complete. > Stack trace (line numbers are for Lucene 5.2.1): > {noformat} > "Lucene Merge Thread #1" #356502 daemon prio=5 os_prio=0 > tid=0x00007f3f78622000 nid=0x11b5 in Object.wait() [0x00007f3e90528000] > java.lang.Thread.State: WAITING (on object monitor) > at java.lang.Object.wait(Native Method) > at java.lang.Thread.join(Thread.java:1245) > - locked <0x00000001965aff78> (a > org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread) > at java.lang.Thread.join(Thread.java:1319) > at > org.apache.lucene.index.ConcurrentMergeScheduler.sync(ConcurrentMergeScheduler.java:420) > at > org.apache.lucene.index.ConcurrentMergeScheduler.close(ConcurrentMergeScheduler.java:401) > at > org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:1948) > at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:1921) > - locked <0x00000001965b0100> (a java.lang.Object) > at > org.apache.lucene.index.IndexWriter.tragicEvent(IndexWriter.java:4439) > - locked <0x00000001965b0100> (a java.lang.Object) > at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3571) > at > org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:581) > at > org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:619) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org