Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14078

DistribPackageStore tries to write to source tree

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Tests
    • 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

          Activity

            People

              Unassigned Unassigned
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: