lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3452) The native FS lock used in test-framework's o.a.l.util.LuceneJUnitResultFormatter prohibits testing on a multi-user system
Date Fri, 02 Dec 2011 01:40:40 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161351#comment-13161351
] 

Grant Ingersoll commented on LUCENE-3452:
-----------------------------------------

I think I am still seeing this between my local user on my machine and Jenkins on the same
machine.  Jenkins checks out clean every time.

When I run with ant -v I do see the lockdir set to the build dir, but I also see 'Override
ignored for property "tests.lockdir"'
                
> The native FS lock used in test-framework's o.a.l.util.LuceneJUnitResultFormatter prohibits
testing on a multi-user system
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3452
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3452
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: general/test
>    Affects Versions: 3.4, 4.0
>            Reporter: Steven Rowe
>            Priority: Minor
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3452.patch
>
>
> {{LuceneJUnitResultFormatter}} uses a lock to buffer test suites' output, so that when
run in parallel, they don't interrupt each other when they are displayed on the console.
> The current implementation uses a fixed directory ({{lucene_junit_lock/}} in {{java.io.tmpdir}}
(by default {{/tmp/}} on Unix/Linux systems) as the location of this lock.  This functionality
was introduced on SOLR-1835.
> As Shawn Heisey reported on SOLR-2739, some tests fail when run as root, but succeed
when run as a non-root user.  
> On #lucene IRC today, Shawn wrote:
> {quote}
> (2:06:07 PM) elyograg: Now that I know I can't run the tests as root, I have discovered
/tmp/lucene_junit_lock.  Once you run the tests as user A, you cannot run them again as user
B until that directory is deleted, and only root or the original user can do so.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message