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

Kevin Risden commented on SOLR-14078:
-------------------------------------

This is because of 
https://github.com/apache/lucene-solr/blob/master/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java#L2098

The TEST_HOME is right from the base directory where "solr/collection1" is 
found.

If there are multiple tests doing stuff to TEST_HOME at once, this would 
definitely cause issues.

> DistribPackageStore tries to write to source tree
> -------------------------------------------------
>
>                 Key: SOLR-14078
>                 URL: https://issues.apache.org/jira/browse/SOLR-14078
>             Project: Solr
>          Issue Type: Test
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>            Reporter: Kevin Risden
>            Priority: Major
>
> Found while looking at SOLR-14064:
> This doesn't cause the test to fail, but it still is wrong to try to write to 
> the source tree. There are junit temp dirs for the running test. It looks 
> like SOLR_HOME is potentially set incorrectly?
> FWIW I don't think this is specific to TestRecoveryHdfs. It is just where I 
> saw the error.
> {code:java}
> 2> 23044 WARN  (SUITE-TestRecoveryHdfs-seed#[AC80F05AAAD3A298]-worker) [     
> ] o.a.s.f.DistribPackageStore Unable to create 
> [/Users/risdenk/repos/apache/lucene-solr/solr/core/src/test-files/solr/filestore]
>  directory in SOLR_HOME 
> [/Users/risdenk/repos/apache/lucene-solr/solr/core/src/test-files/solr].  
> Features requiring this directory may fail.
>   2>           => java.security.AccessControlException: access denied 
> ("java.io.FilePermission" 
> "/Users/risdenk/repos/apache/lucene-solr/solr/core/src/test-files/solr/filestore"
>  "write")
>   2>  at 
> java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
>   2> java.security.AccessControlException: access denied 
> ("java.io.FilePermission" 
> "/Users/risdenk/repos/apache/lucene-solr/solr/core/src/test-files/solr/filestore"
>  "write")
>   2>  at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
>  ~[?:?]
>   2>  at 
> java.security.AccessController.checkPermission(AccessController.java:897) 
> ~[?:?]
>   2>  at java.lang.SecurityManager.checkPermission(SecurityManager.java:322) 
> ~[?:?]
>   2>  at java.lang.SecurityManager.checkWrite(SecurityManager.java:752) ~[?:?]
>   2>  at java.io.File.mkdir(File.java:1323) ~[?:?]
>   2>  at java.io.File.mkdirs(File.java:1355) ~[?:?]
>   2>  at 
> org.apache.solr.filestore.DistribPackageStore.ensurePackageStoreDir(DistribPackageStore.java:476)
>  ~[java/:?]
>   2>  at 
> org.apache.solr.filestore.DistribPackageStore.<init>(DistribPackageStore.java:65)
>  ~[java/:?]
>   2>  at 
> org.apache.solr.filestore.PackageStoreAPI.<init>(PackageStoreAPI.java:77) 
> ~[java/:?]
> {code}



--
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