lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4308) Check what's wrong with reporting unclosed directories with previous errors
Date Wed, 15 Aug 2012 19:27:38 GMT


Dawid Weiss updated LUCENE-4308:

    Attachment: LUCENE-4308.patch

So the problems here are twofold. We should clean up after those unclosed index writers. The
behavior here is correct (two exceptions) because the second exception is a message indicating
the temporary folder (for the unclosed directory) could not be removed. Not being able to
remove a temporary folder is a bad thing especially on windows where this may affect things
down the execution chain.

The second problem is that the behavior of this loop in _testUtil:
    final Random random = new Random(RandomizedContext.current().getRandom().nextLong());
    do {
      result = genTempFile(random, prefix, newSuffix, directory);
    } while (!result.createNewFile());
is different under windows and 1.6/1.7 (J9 and hotspot) -- when a directory with the given
"result" filename already exists 1.6 throws an occasional IOException and 1.7 returns false.
Exception in thread "main" Access is denied
	at Method)
	at org.apache.lucene.Clazz.main(

> Check what's wrong with reporting unclosed directories with previous errors
> ---------------------------------------------------------------------------
>                 Key: LUCENE-4308
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>         Attachments: LUCENE-4308.patch
> {code}
> -Dtests.seed=75DBD696A5D72F04
> -Dtestcase=TestFailIfDirectoryNotClosed
> {code}
> Windows.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message