[ 
https://issues.apache.org/jira/browse/SOLR-10027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Drob resolved SOLR-10027.
------------------------------
    Resolution: Duplicate

> TestCoreDiscovery.testCoreDirCantRead fails when run as superuser
> -----------------------------------------------------------------
>
>                 Key: SOLR-10027
>                 URL: https://issues.apache.org/jira/browse/SOLR-10027
>             Project: Solr
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 6.4
>            Reporter: Mike Drob
>            Priority: Minor
>              Labels: newbie
>
> When run as root, {{TestCoreDiscovery.testCoreDirCantRead}} will fail.
> On some systems (I used CentOS 6.6) the call to set {{core1}} directory as 
> unreadable will succeed, but the directory will still be readable by {{root}} 
> user.
> Running unit tests as root is not a normal user case, but this was a single 
> use EC2 instance that I created explicitly for some short-lived testing, so I 
> didn't bother creating specific users.
> {noformat}
>    [junit4]    > Throwable #1: java.lang.AssertionError
>    [junit4]    >      at 
> __randomizedtesting.SeedInfo.seed([2B9DDCDC875A783B:56D9088AF8DDB649]:0)
>    [junit4]    >      at 
> org.apache.solr.core.TestCoreDiscovery.testCoreDirCantRead(TestCoreDiscovery.java:343)
>    [junit4]    >      at java.lang.Thread.run(Thread.java:745)
> {noformat}
> We should change the earlier {{assume}} to be more robust.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to