You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/testing/RemoteGcsHelper.java
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,10 @@ public StorageOptions options() {
65
65
66
66
/**
67
67
* Deletes a bucket, even if non-empty. Objects in the bucket are listed and deleted until bucket
68
-
* deletion succeeds or {@code timeout} expires.
68
+
* deletion succeeds or {@code timeout} expires. To allow for the timeout, this method uses a
69
+
* separate thread to send the delete requests. Use
70
+
* {@link #forceDelete(Storage storage, String bucket)} if spawning an additional thread is
71
+
* undesirable, such as in the App Engine production runtime.
69
72
*
70
73
* @param storage the storage service to be used to issue requests
71
74
* @param bucket the bucket to be deleted
@@ -89,20 +92,14 @@ public static Boolean forceDelete(Storage storage, String bucket, long timeout,
89
92
}
90
93
91
94
/**
92
-
* Deletes a bucket, even if non-empty. Objects in the bucket are listed and deleted until bucket
93
-
* deletion succeeds. This method can be used to delete buckets from within App Engine. Note that
94
-
* this method does not set a timeout.
95
+
* Deletes a bucket, even if non-empty. This method blocks until the deletion completes or fails.
95
96
*
96
97
* @param storage the storage service to be used to issue requests
97
98
* @param bucket the bucket to be deleted
98
99
* @throws StorageException if an exception is encountered during bucket deletion
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-storage/src/test/java/com/google/gcloud/storage/RemoteGcsHelperTest.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -140,9 +140,8 @@ public void testForceDeleteFail() throws InterruptedException, ExecutionExceptio
0 commit comments