[
https://issues.apache.org/jira/browse/SOLR-16113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511980#comment-17511980
]
Fatih Mehmet ARSLAN edited comment on SOLR-16113 at 3/24/22, 5:46 PM:
----------------------------------------------------------------------
yes, I can create a directory as you said
([see|https://stackoverflow.com/a/45207732]) however s3 works like a map so
each bucket contains keys and objects so I don't need an empty directory in s3.
When creating an object with a full path to s3, it will accept it because
actually, the full path is a key to s3.
So I think verifying location in the s3 repository is not important and
complexity will decrease if not verified.
was (Author: JIRAUSER287041):
yes, I can create a directory as you said
([see|https://stackoverflow.com/a/45207732]) but s3 works like a map so each
bucket contains keys and objects so I don't need an empty directory in s3. When
creating an object with a full path to s3, it will accept it because actually,
the full path is a key to s3.
So I think verifying location in the s3 repository is not important and
complexity will decrease if not verified.
> 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: [email protected]
For additional commands, e-mail: [email protected]