As all methods use POST we can not use the method to determine if funciton is idempotent. We therefore set all as idempotent to nullify that check and add a custom IOException retry handler to determine if commands should be retried on IOException.
The custom hander extends the BackoffLimitedRetryHandler, the current handler, so all other behaviour is not affected. This does not retry any POST methods unless it's ACTION starts with 'Describe'. These functions are idempotent, and therefore safe to retry. See JCLOUDS-1293 You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds/pull/1108 -- Commit Summary -- * JCLOUDS-1293 Add custom IOException retry handler for AWS-EC2 -- File Changes -- M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2ApiMetadata.java (3) A providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/strategy/AWSEC2IOExceptionRetryHandler.java (45) A providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/strategy/AWSEC2IOExceptionRetryHandlerTest.java (56) -- Patch Links -- https://github.com/jclouds/jclouds/pull/1108.patch https://github.com/jclouds/jclouds/pull/1108.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1108
