[
https://issues.apache.org/jira/browse/SOLR-14078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16995144#comment-16995144
]
Kevin Risden commented on SOLR-14078:
-------------------------------------
FYI [~noble.paul] based on history of
https://github.com/apache/lucene-solr/commits/master/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.java
I don't know if there is something wrong w/ DistribPackageStore or it is
"working as designed" with SOLR_HOME being set the way it is.
I haven't dug in anymore but just sharing in case it is obvious.
> 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: [email protected]
For additional commands, e-mail: [email protected]