You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2022/03/24 16:51:00 UTC

[jira] [Commented] (SOLR-16113) location path exists method is wrong to s3

    [ https://issues.apache.org/jira/browse/SOLR-16113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511949#comment-17511949 ] 

Houston Putman commented on SOLR-16113:
---------------------------------------

{quote}Also, s3-repository dependencies are in  folder ./dist while some are under modules/s3-repository an I don't understand reason of this state.
{quote}
This has been fixed in 9.0, and it will be released soon. 

As for your other issue, I think you are misinterpreting what the location parameter should be. It should be a directory that already exists in your S3 bucket. The location should not be started with the name of your bucket either. You said that your bucket is empty, therefore it makes sense that you are getting the error that s3:///aaa/ does not exist. The S3 repository will not make directory for you if it doesn't already exist. You can find updated documentation here: 

https://github.com/apache/solr/blob/main/solr/solr-ref-guide/modules/deployment-guide/pages/backup-restore.adoc#s3backuprepository

> location path exists method is wrong to s3
> ------------------------------------------
>
>                 Key: SOLR-16113
>                 URL: https://issues.apache.org/jira/browse/SOLR-16113
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - S3 Repository
>            Reporter: Fatih Mehmet ARSLAN
>            Priority: Major
>
> 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
> {code:java}
> org.apache.solr.common.SolrException: specified location s3:///aaa/ does not exist. => org.apache.solr.common.SolrException: specified location s3:///aaa/ does not exist {code}
> *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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org