[jira] Resolved: (LUCENE-1018) intermittant exceptions in TestConcurrentMergeScheduler

2007-10-06 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-1018. Resolution: Fixed I just committed this. > intermittant exceptions

[jira] Updated: (LUCENE-1018) intermittant exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Michael McCandless (JIRA)
and also a few other small issues and adding more verbosity when infoStream is set. I plan to commit in a few days. > intermittant exceptions in TestConcurrentMergeScheduler > --- > > Key: LUCENE-1018 >

[jira] Created: (LUCENE-1018) intermittant exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Michael McCandless (JIRA)
intermittant exceptions in TestConcurrentMergeScheduler --- Key: LUCENE-1018 URL: https://issues.apache.org/jira/browse/LUCENE-1018 Project: Lucene - Java Issue Type: Bug

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Michael McCandless
Indeed this will work! I was unsure whether you could fail() a test inside tearDown() but it seems to work fine -- I just tested it. Only downside is a mass replacement of all "extends TestCase" with "extends LuceneTestCase" (but that's a one time cost, now), and making sure tearDown() always ca

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Erik Hatcher
Mike, Would it work to have a common LuceneTestCase base class that could do that check and fail() in tearDown? Erik On Oct 4, 2007, at 5:31 AM, Michael McCandless wrote: OK, I think I found one possibility here. With ant's junit task, you can define a custom formatter implement

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Michael McCandless
OK, I think I found one possibility here. With ant's junit task, you can define a custom formatter implementing this interface: org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter That interface has a method endTestSuite that is invoked once at the end of all the test cases. So

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-04 Thread Michael McCandless
"Chris Hostetter" <[EMAIL PROTECTED]> wrote: > > : But it'd be nice to do this across the board, ie, for any junit test > : if one of CMS's threads (or, threads launched elsewhere) hits an > : unhandled exception, fail the testcase that's currently running. > : I'll dig and see if there's some ce

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-03 Thread Chris Hostetter
: But it'd be nice to do this across the board, ie, for any junit test : if one of CMS's threads (or, threads launched elsewhere) hits an : unhandled exception, fail the testcase that's currently running. : I'll dig and see if there's some central way to do this with junit... FYI: i did some casu

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-03 Thread Michael McCandless
"Ning Li" <[EMAIL PROTECTED]> wrote: > The cause is that in MergeThread.run(), merge in the try block is a > local variable, while merge in the catch block is the class variable. > Merge in the try block could be one different from the original merge, > but the catch block always checks the abort

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-03 Thread Ning Li
The cause is that in MergeThread.run(), merge in the try block is a local variable, while merge in the catch block is the class variable. Merge in the try block could be one different from the original merge, but the catch block always checks the abort flag of the original merge. -

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-02 Thread Michael Busch
> I can't get this to happen. Which OS/hardware are you seeing this on? > I seeing it on my Laptop: 2.0 GHz Centrino, 2 GB RAM, Windows XP, Sun JRE 1.5.0_06. I tried the testcase a couple more times and it's approximately failing in 1 to 2 runs out of 10. > But it'd be nice to do this across t

Re: Exceptions in TestConcurrentMergeScheduler

2007-10-02 Thread Michael McCandless
"Michael Busch" <[EMAIL PROTECTED]> wrote: > Hi, > > I noticed the following exception in TestConcurrentMergeScheduler: > > [junit] Testsuite: org.apache.lucene.index.TestConcurrentMergeScheduler > [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 17.765 > sec > [junit] ---

Exceptions in TestConcurrentMergeScheduler

2007-10-01 Thread Michael Busch
Hi, I noticed the following exception in TestConcurrentMergeScheduler: [junit] Testsuite: org.apache.lucene.index.TestConcurrentMergeScheduler [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 17.765 sec [junit] - Standard Error - [junit] Excepti