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

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

Commit 1622279 from [~mikemccand] in branch 'dev/trunk'
[ https://svn.apache.org/r1622279 ]

LUCENE-5919: fix IndexWriter exception handling when calling 
IndexFileDeleter.decRef

> More carefully handle exceptions from IndexFileDeleter.decRef
> -------------------------------------------------------------
>
>                 Key: LUCENE-5919
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5919
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.11
>
>         Attachments: LUCENE-5919.patch
>
>
> From test failure: 
> https://builds.apache.org/job/Lucene-Solr-NightlyTests-trunk/613/
> {noformat}
> java.lang.AssertionError: 
> TEST-TestIndexWriterOutOfMemory.testBasics-seed#[C4C9D7B4B9D5D290]: RefCount 
> is 0 pre-decrement for file "_2_2_Lucene410_0.dvd"
>       at 
> __randomizedtesting.SeedInfo.seed([C4C9D7B4B9D5D290:F9117998813B8CE0]:0)
>       at 
> org.apache.lucene.index.IndexFileDeleter$RefCount.DecRef(IndexFileDeleter.java:725)
>       at 
> org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:611)
>       at 
> org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:599)
>       at 
> org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2851)
>       at 
> org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2952)
>       at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2919)
>       at 
> org.apache.lucene.index.TestIndexWriterOutOfMemory.testBasics(TestIndexWriterOutOfMemory.java:215)
> Reproduce with: ant test  -Dtestcase=TestIndexWriterOutOfMemory 
> -Dtests.method=testBasics -Dtests.seed=C4C9D7B4B9D5D290 -Dtests.multiplier=2 
> -Dtests.nightly=true -Dtests.slow=true 
> -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
> -Dtests.locale=mk_MK -Dtests.timezone=America/Vancouver 
> -Dtests.file.encoding=ISO-8859-1
> {noformat}
> What happened was IW was trying to decRef a set of files, and at
> least one needed to be deleted, then virus checker threw exception,
> and IW later passed the full set of files back to decRef later despite
> that some had already been decRef'd the first time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to