lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-5919) More carefully handle exceptions from IndexFileDeleter.decRef
Date Wed, 03 Sep 2014 15:32:51 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-5919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless resolved LUCENE-5919.
----------------------------------------
    Resolution: Fixed

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message