Removes unused S3BlobStore#shouldRetry() method

This commit is contained in:
Ali Beyad 2017-04-06 20:58:12 -04:00
parent 480cfe3fe0
commit ac87d40bd5
1 changed files with 0 additions and 12 deletions

View File

@ -19,9 +19,7 @@
package org.elasticsearch.repositories.s3;
import com.amazonaws.AmazonClientException;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.AmazonS3Exception;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.services.s3.model.DeleteObjectsRequest;
import com.amazonaws.services.s3.model.DeleteObjectsRequest.KeyVersion;
@ -145,16 +143,6 @@ class S3BlobStore extends AbstractComponent implements BlobStore {
});
}
protected boolean shouldRetry(AmazonClientException e) {
if (e instanceof AmazonS3Exception) {
AmazonS3Exception s3e = (AmazonS3Exception) e;
if (s3e.getStatusCode() == 400 && "RequestTimeout".equals(s3e.getErrorCode())) {
return true;
}
}
return e.isRetryable();
}
@Override
public void close() {
}