You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/09/03 10:39:51 UTC

[jira] [Created] (LUCENE-5919) More carefully handle exceptions from IndexFileDeleter.decRef

Michael McCandless created LUCENE-5919:
------------------------------------------

             Summary: 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


>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