[jboss-jira] [JBoss JIRA] (JGRP-1975) JGroups S3_PING should support sub-folders in S3.
Bela Ban (JIRA)
issues at jboss.org
Thu Aug 17 12:32:00 EDT 2017
[ https://issues.jboss.org/browse/JGRP-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450929#comment-13450929 ]
Bela Ban commented on JGRP-1975:
--------------------------------
I don't really support {{S3_PING}} anymore. I suggest switch to NATIVE_S3_PING [1], or some of the alternatives for S3 written by other people.
[1] https://github.com/jgroups-extras/native-s3-ping
> JGroups S3_PING should support sub-folders in S3.
> -------------------------------------------------
>
> Key: JGRP-1975
> URL: https://issues.jboss.org/browse/JGRP-1975
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Dinesh Wijekoon
>
> As in the code (https://github.com/belaban/JGroups/blob/master/src/org/jgroups/protocols/S3_PING.java#L66)
> {code}
> if(prefix != null && !prefix.isEmpty()) {
> ListAllMyBucketsResponse bucket_list=conn.listAllMyBuckets(null);
> List buckets=bucket_list.entries;
> if(buckets != null) {
> boolean found=false;
> for(Object tmp: buckets) {
> if(tmp instanceof Bucket) {
> Bucket bucket=(Bucket)tmp;
> if(bucket.name.startsWith(prefix)) {
> location=bucket.name;
> found=true;
> }
> }
> }
> if(!found) {
> location=prefix + "-" + java.util.UUID.randomUUID().toString();
> }
> }
> }
> {code}
> This stop people by pointing s3_ping into a sub folder in s3, and it requires a root bucket. This will make life so much harder for a organisation which users multiple instances running for different clients.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list