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] Created: (LUCENE-1018) intermittant exceptions in TestConcurrentMergeScheduler
Date Thu, 04 Oct 2007 16:19:50 GMT
intermittant exceptions in TestConcurrentMergeScheduler
-------------------------------------------------------

                 Key: LUCENE-1018
                 URL: https://issues.apache.org/jira/browse/LUCENE-1018
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: 2.3
            Reporter: Michael McCandless
            Assignee: Michael McCandless
            Priority: Minor
             Fix For: 2.3
         Attachments: LUCENE-1018.patch


The TestConcurrentMergeScheduler throws intermittant exceptions that
do not result in a test failure.

The exception happens in the "testNoWaitClose()" test, which repeated
tests closing an IndexWriter with "false", meaning abort any
still-running merges.  When a merge is aborted it can hit various
exceptions because the files it is reading and/or writing have been
deleted, so we ignore these exceptions.

The bug was just that we were failing to properly check whether the
running merge was actually aborted because of a scoping issue of the
"merge" variable in ConcurrentMergeScheduler.  So the exceptions are
actually "harmless".  Thanks to Ning for spotting it!



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message