jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-334) createContainerInLocation returns true even if container exists
Date Tue, 08 Oct 2013 04:50:44 GMT

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

ASF subversion and git services commented on JCLOUDS-334:
---------------------------------------------------------

Commit 313484567b877c88d24c960049ba63d0ce88be8c in branch refs/heads/1.6.x from [~shrinand]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-jclouds.git;h=3134845 ]

JCLOUDS-334. Return correct status while creating containers in Swift.

BlobStore.createContainerInLocation is supposed to return True if the
container was newly created and False if the container already
existed. This commit makes that happen for Swift blobstores.


> createContainerInLocation returns true even if container exists
> ---------------------------------------------------------------
>
>                 Key: JCLOUDS-334
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-334
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 1.6.2
>            Reporter: Diwaker Gupta
>
> Javadocs for `createContainerInLocation` state (from http://javadocs.jclouds.cloudbees.net/org/jclouds/blobstore/BlobStore.html):
> "Returns: true if the container was created, false if it already existed."
> The following simple test snippet verifies this:
> ```
>         assertThat(blobStore.createContainerInLocation(
>             /*location=*/ null, name)).isTrue();
>         assertTrue(blobStore.containerExists(name));
>         assertThat(blobStore.createContainerInLocation(
>             /*location=*/ null, name)).isFalse();
> ```
> I ran the test above for a variety of blobstores, and the test fails for pretty much
everyblobstore including aws-s3, cloudfiles, hpcloud, azureblob, atmos etc. In my tests, it
does pass when using generic S3 endpoints like with Google cloud storage.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message