lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2618) Intermittent failure in 3.x's backwards TestThreadedOptimize
Date Fri, 22 Oct 2010 19:58:17 GMT


Michael McCandless commented on LUCENE-2618:

bq. Does this mean I'll need to catch that exception every time I close an IW, or at least
prepare to catch it?

Well, IndexFormatTooOldExc subclasses IOE... but, yes, if there's a risk you'll open a too-old
index, you should try to handle this.

IW.close does alot... flush the last segment, let MS run any pending merges, do commit, delete
now-not-need files, etc.  So there's plenty of chances for interested excs.

bq. Is it only relevant to the test?

Well, this test opens an IW on a too-old index... so if your app may do that....

bq. Can IW swallow those exceptions internally, and relieve the application from all this?

Whoa no way!

> Intermittent failure in 3.x's backwards TestThreadedOptimize
> ------------------------------------------------------------
>                 Key: LUCENE-2618
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2618.patch, LUCENE-2618.patch
> Failure looks like this:
> {noformat}
>     [junit] Testsuite: org.apache.lucene.index.TestThreadedOptimize
>     [junit] Testcase: testThreadedOptimize(org.apache.lucene.index.TestThreadedOptimize):
>     [junit] null
>     [junit] junit.framework.AssertionFailedError: null
>     [junit] 	at org.apache.lucene.index.TestThreadedOptimize.runTest(
>     [junit] 	at org.apache.lucene.index.TestThreadedOptimize.testThreadedOptimize(
>     [junit] 	at org.apache.lucene.util.LuceneTestCase.runBare(
> {noformat}
> I just committed some verbosity so next time it strikes we'll have more details.

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:
For additional commands, e-mail:

View raw message