[ https://issues.apache.org/jira/browse/SOLR-14096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16998707#comment-16998707 ]
Kevin Risden commented on SOLR-14096: ------------------------------------- Ok so to recap. * The LoggingHandlerTest issue is fixed in SOLR-14099. * DistribPackageStore filestore creating a directory in the source tree is still wrong. I dug into DistribPackageStore in SOLR-14078 originally and found the following: 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. This also causes lucene-solr/solr/core/src/test-files/solr/userfiles which is following the same pattern. [~jbernste] dug into this more in SOLR-14084. So long story short - SolrTestCaseJ4 TEST_HOME needs to be fixed. > DistribPackageStore attempts to create filestore in read-only directory > ----------------------------------------------------------------------- > > Key: SOLR-14096 > URL: https://issues.apache.org/jira/browse/SOLR-14096 > Project: Solr > Issue Type: Test > Security Level: Public(Default Security Level. Issues are Public) > Components: Tests > Reporter: Dawid Weiss > Priority: Major > > I see this in the logs when running with security manager: > {code} > 1645805 WARN (SUITE-LoggingHandlerTest-seed#[DEADBEEF]-worker) [ ] > o.a.s.f.DistribPackageStore Unable to create > [/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore] > directory in SOLR_HOME > [/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr]. > Features requiring this directory may fail. > => java.security.AccessControlException: access denied > ("java.io.FilePermission" > "/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore" > "write") > at > java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) > java.security.AccessControlException: access denied ("java.io.FilePermission" > "/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore" > "write") > at > java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) > ~[?:?] > at > java.security.AccessController.checkPermission(AccessController.java:897) > ~[?:?] > at java.lang.SecurityManager.checkPermission(SecurityManager.java:322) > ~[?:?] > at java.lang.SecurityManager.checkWrite(SecurityManager.java:752) ~[?:?] > at java.io.File.mkdir(File.java:1323) ~[?:?] > at java.io.File.mkdirs(File.java:1355) ~[?:?] > at > org.apache.solr.filestore.DistribPackageStore.ensurePackageStoreDir(DistribPackageStore.java:476) > ~[main/:?] > at > org.apache.solr.filestore.DistribPackageStore.<init>(DistribPackageStore.java:65) > ~[main/:?] > at > org.apache.solr.filestore.PackageStoreAPI.<init>(PackageStoreAPI.java:78) > ~[main/:?] > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:619) > ~[main/:?] > {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