private void waitForCompletion(final Semaphore semaphore, final Set<ListenableFuture<Void>> outstandingFutures) { // Wait for all futures to complete by waiting to acquire all // semaphores. try { semaphore.acquire(maxParallelDeletes); semaphore.release(maxParallelDeletes); } catch (InterruptedException e) { logger.debug("Interrupted while waiting for blobs to be deleted"); cancelOutstandingFutures(outstandingFutures); Thread.currentThread().interrupt(); } }
private void waitForCompletion(final Semaphore semaphore, final Set<ListenableFuture<Void>> outstandingFutures) { // Wait for all futures to complete by waiting to acquire all // semaphores. try { semaphore.acquire(maxParallelDeletes); semaphore.release(maxParallelDeletes); } catch (InterruptedException e) { logger.debug("Interrupted while waiting for blobs to be deleted"); cancelOutstandingFutures(outstandingFutures); Thread.currentThread().interrupt(); } }
private void waitForCompletion(final Semaphore semaphore, final Set<ListenableFuture<Void>> outstandingFutures) { // Wait for all futures to complete by waiting to acquire all // semaphores. try { semaphore.acquire(maxParallelDeletes); semaphore.release(maxParallelDeletes); } catch (InterruptedException e) { logger.debug("Interrupted while waiting for blobs to be deleted"); cancelOutstandingFutures(outstandingFutures); Thread.currentThread().interrupt(); } }
private void waitForCompletion(final Semaphore semaphore, final Set<ListenableFuture<Void>> outstandingFutures) { // Wait for all futures to complete by waiting to acquire all // semaphores. try { semaphore.acquire(maxParallelDeletes); semaphore.release(maxParallelDeletes); } catch (InterruptedException e) { logger.debug("Interrupted while waiting for blobs to be deleted"); cancelOutstandingFutures(outstandingFutures); Thread.currentThread().interrupt(); } }
cancelOutstandingFutures(outstandingFutures); throw new BlobRuntimeException("Exceeded maximum retry attempts");
cancelOutstandingFutures(outstandingFutures); throw new BlobRuntimeException("Exceeded maximum retry attempts");
cancelOutstandingFutures(outstandingFutures); throw new BlobRuntimeException("Exceeded maximum retry attempts");
cancelOutstandingFutures(outstandingFutures); throw new BlobRuntimeException("Exceeded maximum retry attempts");
logger.debug("TimeoutException while deleting blobs: {}", te.getMessage()); cancelOutstandingFutures(outstandingFutures); deleteFailure.set(true);
logger.debug("TimeoutException while deleting blobs: {}", te.getMessage()); cancelOutstandingFutures(outstandingFutures); deleteFailure.set(true);
logger.debug("TimeoutException while deleting blobs: {}", te.getMessage()); cancelOutstandingFutures(outstandingFutures); deleteFailure.set(true);
logger.debug("TimeoutException while deleting blobs: {}", te.getMessage()); cancelOutstandingFutures(outstandingFutures); deleteFailure.set(true);