Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD8FA200B21 for ; Fri, 10 Jun 2016 14:45:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC28B160A38; Fri, 10 Jun 2016 12:45:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0861160A04 for ; Fri, 10 Jun 2016 14:45:55 +0200 (CEST) Received: (qmail 82203 invoked by uid 500); 10 Jun 2016 12:45:55 -0000 Mailing-List: contact user-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jclouds.apache.org Delivered-To: mailing list user@jclouds.apache.org Received: (qmail 82193 invoked by uid 99); 10 Jun 2016 12:45:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 12:45:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 922DE180592 for ; Fri, 10 Jun 2016 12:45:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pouwelse-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id agkkeeL1s-re for ; Fri, 10 Jun 2016 12:45:52 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 319495F4E9 for ; Fri, 10 Jun 2016 12:45:52 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id h68so5971386lfh.3 for ; Fri, 10 Jun 2016 05:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pouwelse-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=46S22f8/AGx5ZrZihOcqWoGm0ZlrPMD9Fw+ndW+ktl4=; b=D0rv7Trre+A7x04zCyfbk7vrahiOOxWdWrtTP+BrKzs1SUHcRhsSCnndPeLmYRzOgL adrfjtOrOHecA4uxfp4g6sVevVJRX97qJnhVCbcjUgfSWjefoxe2LORkqBf07vnKRZ0/ 8oQdzTMQyuxlpoNUBj5zo+uY0oaViaBqzIxIX/rW7n95iOANTRNGViYfq2YllCCzD/jP u68bxv7BEJr0K10BTA/bJFieYrwSPzhx8UdjLY2q/YaQOLQNrwGEHqSbV3nobkXlSBMh eecGx9PoOYe0qXpKEfeDPgpPFdAFlGvVZkAsKqrkSPFDLW2o0WR2Bcbu96cUrt6rPa1B jKqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=46S22f8/AGx5ZrZihOcqWoGm0ZlrPMD9Fw+ndW+ktl4=; b=GIj4aexBROqyIP6OidbmAsww++o1kBQjNIpf5hv8bdwC+dZ2F+H1vIMV0Ogwqqqkw0 NRgdXuTjPuIlF+md+DZKgMb2tuE1QqTVR8eOfI/zyfZ378KJSXuFxunkxGTmyGpUFWzf /fzASXDqYNyrDjVBNqdV/AWNkfsy0kUU9+VHrYEK5N3mJ+2Vpubmsc+Fo7FpBMgRfGzP CvtFRkzsfQTMF6q/kqaCDxOosgmxv2tzsfVoxdIrrk04nkHSMfev0Zdwwhs4mS+NUXC/ rujC4JSmTnPy74+9eL8m3H5+rTn0U6a9LXVCxmz29aduVukNwsFw7T7980BWwnRbJ/o4 9vYg== X-Gm-Message-State: ALyK8tLPTvjbILscFvTjg4A5ejwdDyHegvOqjY0qgXsPQmpliqyhRgbjYz3vFAa2d0P2gHloR5iZ9HMKgKtrwQ== X-Received: by 10.25.208.138 with SMTP id h132mr495783lfg.214.1465562751654; Fri, 10 Jun 2016 05:45:51 -0700 (PDT) MIME-Version: 1.0 From: Bram Pouwelse Date: Fri, 10 Jun 2016 12:45:41 +0000 Message-ID: Subject: BlobStore#clearContainer never returns after closing BlobStoreContext To: user@jclouds.apache.org Content-Type: multipart/alternative; boundary=001a11412c343579090534ebebd7 archived-at: Fri, 10 Jun 2016 12:45:56 -0000 --001a11412c343579090534ebebd7 Content-Type: text/plain; charset=UTF-8 Hi, I'm running into some never ending integration tests in my prohect after upgrading jcouds to 1.9.2, this seems to be caused by calling BlobStore#clearContainer after the BlobStoreContext has been closed. I've attached a patch to demonstrate this issue using the org.jclouds.blobstore.integration.TransientServiceIntegrationTest at the end of this mail. After figuring out the root cause of my problem I did some more tests and I don't really get what the close method is supposed to do, If I try the same using the filesystem provider there is no issue? How is it possible the BlobStoreContext (and BlobStore instances created from that context) are still usable after closing the context? Regards, Bram Patch (tested on the 1.9.x branch): diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java index eeaaf96..e63cef6 100644 --- a/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java @@ -16,6 +16,8 @@ */ package org.jclouds.blobstore.integration; +import org.jclouds.blobstore.BlobStore; + import org.jclouds.blobstore.integration.internal.BaseBlobIntegrationTest; import org.testng.annotations.Test; @@ -24,4 +26,13 @@ public class TransientBlobIntegrationTest extends BaseBlobIntegrationTest { public TransientBlobIntegrationTest() { provider = "transient"; } + + @Test(groups = { "integration"}) + public void testClearContainerAfterCloseNeverEnds() throws Exception { + BlobStore blobStore = view.getBlobStore(); + blobStore.createContainerInLocation(null, "test"); + blobStore.putBlob("test", blobStore.blobBuilder("dummy").payload("test".getBytes()).build()); + view.close(); + blobStore.clearContainer("test"); + } } --001a11412c343579090534ebebd7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0

I'm running into some nev= er ending integration tests in my prohect after upgrading jcouds to 1.9.2, = this seems to be caused by calling BlobStore#clearContainer after the BlobS= toreContext has been closed. I've attached a patch to demonstrate this = issue using the org.jclouds.blobstore.integration.TransientServiceIntegrati= onTest at the end of this mail.=C2=A0

After figuri= ng out the root cause of my problem I did some more tests and I don't r= eally get what the close method is supposed to do, If I try the same using = the filesystem provider there is no issue? How is it possible the BlobStore= Context (and BlobStore instances created from that context) are still usabl= e after closing the context?=C2=A0

Regards,
<= div>Bram=C2=A0

Patch (tested on the 1.9.x branch):= =C2=A0

diff --git a/blobstore/src/test/java/o= rg/jclouds/blobstore/integration/TransientBlobIntegrationTest.java b/blobst= ore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegratio= nTest.java
index eeaaf96..e63cef6 100644
--- a/blobstor= e/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationT= est.java
+++ b/blobstore/src/test/java/org/jclouds/blobstore/inte= gration/TransientBlobIntegrationTest.java
@@ -16,6 +16,8 @@
=
=C2=A0 */
=C2=A0package org.jclouds.blobstore.integration;

+import org.jclouds.blobstore.BlobStore;
= +
=C2=A0import org.jclouds.blobstore.integration.internal.BaseBlo= bIntegrationTest;
=C2=A0import org.testng.annotations.Test;
=

@@ -24,4 +26,13 @@ public class TransientBlobIntegratio= nTest extends BaseBlobIntegrationTest {
=C2=A0 =C2=A0 public Tran= sientBlobIntegrationTest() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0provider = =3D "transient";
=C2=A0 =C2=A0 }
+
= + =C2=A0 @Test(groups =3D { "integration"})
+ =C2=A0 pu= blic void testClearContainerAfterCloseNeverEnds() throws Exception {
<= div>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0BlobStore blobStore =3D view.getBlobStore(= );
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0blobStore.createContainerInLocati= on(null, "test");
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0blobStor= e.putBlob("test", blobStore.blobBuilder("dummy").payloa= d("test".getBytes()).build());
+ =C2=A0 =C2=A0view.clos= e();
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0blobStore.clearContainer("= test");
+ =C2=A0 }
=C2=A0}
--001a11412c343579090534ebebd7--