File tree 1 file changed +6
-0
lines changed
plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 26
26
import org .apache .logging .log4j .Logger ;
27
27
import org .apache .logging .log4j .message .ParameterizedMessage ;
28
28
import org .elasticsearch .core .internal .io .IOUtils ;
29
+ import org .elasticsearch .Version ;
29
30
30
31
import java .io .IOException ;
31
32
import java .io .InputStream ;
32
33
import java .nio .file .NoSuchFileException ;
33
34
35
+ /**
36
+ * Wrapper around an S3 object that will retry the {@link GetObjectRequest} if the download fails part-way through, resuming from where
37
+ * the failure occurred. This should be handled by the SDK but it isn't today. This should be revisited in the future (e.g. before removing
38
+ * the {@link Version#V_7_0_0} version constant) and removed when the SDK handles retries itself.
39
+ */
34
40
class S3RetryingInputStream extends InputStream {
35
41
36
42
private static final Logger logger = LogManager .getLogger (S3RetryingInputStream .class );
You can’t perform that action at this time.
0 commit comments