Viral Gandhi created LUCENE-9422: ------------------------------------ Summary: Detailed logging for MergePolicy$MergeException stack trace Key: LUCENE-9422 URL: https://issues.apache.org/jira/browse/LUCENE-9422 Project: Lucene - Core Issue Type: Improvement Reporter: Viral Gandhi
We hit the following exception: {code:java} Uncaught exception: org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalStateException: files were not computed yet; segment=_3g5 maxDoc=3095 in thread Thread[Lucene Merge Thread #456,5,main] org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalStateException: files were not computed yet; segment=_3g5 maxDoc=3095 at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:704) at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:684) Caused by: java.lang.IllegalStateException: files were not computed yet; segment=_3g5 maxDoc=3095 at org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:176) at org.apache.lucene.index.SegmentCommitInfo.files(SegmentCommitInfo.java:228) at org.apache.lucene.index.IndexWriter$2.mergeFinished(IndexWriter.java:3181) at org.apache.lucene.index.IndexWriter.closeMergeReaders(IndexWriter.java:4444) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4744) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4170) at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:625) at com.amazon.lucene.index.ConcurrentMergeSchedulerWrapper.doMerge(ConcurrentMergeSchedulerWrapper.java:64) at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:662) {code} After a merge thread hit an exception, and in trying to throw the exception, Lucene called _SegmentInfo.files()_ which then threw another exception. Maybe this caused in losing root cause exception? Having more details regarding the root cause would have been helpful here. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org