lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5374) Call processEvents before IndexWriter is closed
Date Fri, 20 Dec 2013 16:06:09 GMT

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

ASF subversion and git services commented on LUCENE-5374:
---------------------------------------------------------

Commit 1552710 from [~simonw] in branch 'dev/trunk'
[ https://svn.apache.org/r1552710 ]

LUCENE-5374: Call IW#processEvents before IndexWriter is closed

> Call processEvents before IndexWriter is closed
> -----------------------------------------------
>
>                 Key: LUCENE-5374
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5374
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.6
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 5.0, 4.7
>
>         Attachments: LUCENE-5374.patch
>
>
> We saw failures on jenkins that complain about processing events in the IW while the
IW is already closed:
> {noformat}
> com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception
in thread: Thread[id=193, name=Thread-133, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
> Caused by: java.lang.RuntimeException: org.apache.lucene.store.AlreadyClosedException:
this IndexWriter is closed
>         at __randomizedtesting.SeedInfo.seed([3FAF37E1AFFB2502]:0)
>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:619)
> Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
>         at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:645)
>         at org.apache.lucene.index.IndexWriter.numDeletedDocs(IndexWriter.java:622)
>         at org.apache.lucene.index.IndexWriter.segString(IndexWriter.java:4265)
>         at org.apache.lucene.index.IndexWriter.publishFlushedSegment(IndexWriter.java:2324)
>         at org.apache.lucene.index.DocumentsWriterFlushQueue$FlushTicket.publishFlushedSegment(DocumentsWriterFlushQueue.java:198)
>         at org.apache.lucene.index.DocumentsWriterFlushQueue$FlushTicket.finishFlush(DocumentsWriterFlushQueue.java:213)
>         at org.apache.lucene.index.DocumentsWriterFlushQueue$SegmentFlushTicket.publish(DocumentsWriterFlushQueue.java:249)
>         at org.apache.lucene.index.DocumentsWriterFlushQueue.innerPurge(DocumentsWriterFlushQueue.java:116)
>         at org.apache.lucene.index.DocumentsWriterFlushQueue.forcePurge(DocumentsWriterFlushQueue.java:138)
>         at org.apache.lucene.index.DocumentsWriter.purgeBuffer(DocumentsWriter.java:185)
>         at org.apache.lucene.index.IndexWriter.purge(IndexWriter.java:4634)
>         at org.apache.lucene.index.DocumentsWriter$ForcedPurgeEvent.process(DocumentsWriter.java:701)
>         at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4665)
>         at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4657)
>         at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1067)
>         at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2106)
>         at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:2024)
>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:575)
> {noformat}
> we need to process the events before we enter the finally block in IW#closeInternal



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

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


Mime
View raw message