From c32656a7ef13bc952899486026d5a4bf60ff6509 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Fri, 31 Jul 2015 11:26:53 +0200 Subject: [PATCH] CLOUDSTACK-8640: Revert to AWS SDK 1.3.22 The newer SDKs API changed which causes our S3 Template Downloader to never complete. Although we should fix the Template Downloader we can revert to the old AWS SDK for now. The fix on the longer run will be rewriting the S3 Template Downloader. Two methods had to be disabled for now since the old SDK does not support them. They can be re-enabled when the Template Downloader has been fixed. --- pom.xml | 2 +- utils/src/com/cloud/utils/S3Utils.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e76d74735c3..bd0c4c3a43f 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ 3.2.12.RELEASE 1.9.5 1.5.3 - 1.9.8 + 1.3.22 2.6 3.4 2.4 diff --git a/utils/src/com/cloud/utils/S3Utils.java b/utils/src/com/cloud/utils/S3Utils.java index fc8a3cc17c9..7df3d3b58fe 100644 --- a/utils/src/com/cloud/utils/S3Utils.java +++ b/utils/src/com/cloud/utils/S3Utils.java @@ -103,17 +103,19 @@ public final class S3Utils { } if (clientOptions.getUseTCPKeepAlive() != null) { - configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive()); + //configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive()); + LOGGER.debug("useTCPKeepAlive not supported by old AWS SDK"); } if (clientOptions.getConnectionTtl() != null) { - configuration.setConnectionTTL(clientOptions.getConnectionTtl()); + //configuration.setConnectionTTL(clientOptions.getConnectionTtl()); + LOGGER.debug("connectionTtl not supported by old AWS SDK"); } if (LOGGER.isDebugEnabled()) { LOGGER.debug(format("Creating S3 client with configuration: [protocol: %1$s, connectionTimeOut: " + "%2$s, maxErrorRetry: %3$s, socketTimeout: %4$s, useTCPKeepAlive: %5$s, connectionTtl: %6$s]", configuration.getProtocol(), configuration.getConnectionTimeout(), configuration.getMaxErrorRetry(), configuration.getSocketTimeout(), - configuration.useTcpKeepAlive(), configuration.getConnectionTTL())); + -1, -1)); } final AmazonS3Client client = new AmazonS3Client(credentials, configuration);