lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3152) MockDirectoryWrapper should wrap the lockfactory
Date Sun, 29 May 2011 00:12:47 GMT


Robert Muir updated LUCENE-3152:

    Attachment: LUCENE-3152.patch

attached is a patch... all the windows-only problems i found with LUCENE-3147 now fail on
linux (and are corrected in the patch)

> MockDirectoryWrapper should wrap the lockfactory
> ------------------------------------------------
>                 Key: LUCENE-3152
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 3.3, 4.0
>         Attachments: LUCENE-3152.patch
> After applying the patch from LUCENE-3147, I added a line to make the test fail if it
cannot remove its temporary directory.
> I ran 'ant test' on linux 50 times, and it passed all 50 times.
> But on windows, it failed often because of write.lock... this is because of unclosed
writers in the test.
> MockDirectoryWrapper is currently unaware of this write.lock, I think it should wrap
the lockfactory so that .close() will fail if there are any outstanding locks.
> Then hopefully these tests would fail on linux too.

This message is automatically generated by JIRA.
For more information on JIRA, see:

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

View raw message