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

location path exists method is wrong to s3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      method of pathExists that in S3StorageClient is verifying path like a local disk. this method works wrong if our s3 repository is empty.

      if my local s3 repository is empty while I want to backup to any path, the service throws an exception as follow because my repository does not include an object that has the path of prefix

      org.apache.solr.common.SolrException: specified location s3:///aaa/ does not exist. => org.apache.solr.common.SolrException: specified location s3:///aaa/ does not exist 

      temporary solution

      I used "/" to the location parameter and work it for me.

       

      https://gitbox.apache.org/repos/asf?p=solr.git;a=blob;f=solr/modules/s3-repository/src/java/org/apache/solr/s3/S3StorageClient.java;h=34dc20790b0947e83b0f0dc4aa487e67bb572f5c;hb=HEAD#l299

       

      Also, s3-repository dependencies are in  folder ./dist while some are under modules/s3-repository an I don't understand reason of this state.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fmarslan Fatih Mehmet ARSLAN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: