Details
-
Test
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
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.
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/:?]
Attachments
Issue Links
- is duplicated by
-
SOLR-14096 DistribPackageStore attempts to create filestore in read-only directory
- Closed
- is related to
-
SOLR-14084 Security manager access denied not causing tests to fail
- Closed
- relates to
-
SOLR-13991 clean up permissions in solr-tests.policy
- Closed