File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3 Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 2323import java .util .Map ;
2424
2525/**
26- * Simple mapping from S3 endpoint hostnames to AWS region names, in case the user does not specify a region.
26+ * Simple mapping from S3 endpoint hostnames to AWS region names, in case the user does not specify a region. This allows Elasticsearch to
27+ * guess an appropriate AWS region name, and keep working, if a user does not specify one. This is a best-effort attempt for backwards
28+ * compatibility: AWS SDK V1 would extrapolate the correct region but V2 considers it a fatal error not to be told the region name
29+ * explicitly.
30+ * <p>
31+ * The mapping is loaded from the JAR resource named {@code regions_by_endpoint.txt}.
32+ * </p>
2733 */
2834class RegionFromEndpointGuesser {
29- /*
30- * Loads JAR resource "regions_by_endpoint.txt" into a map from S3 endpoint hostnames to AWS region names, in case the user specifies a
31- * regional endpoint but not a region. This allows Elasticsearch to guess an appropriate AWS region name, and keep working, if a user
32- * does not specify one. This is a best-effort attempt for backwards compatibility: AWS SDK V1 would extrapolate the correct region but
33- * V2 considers it a fatal error not to be told the region name explicitly.
34- */
35-
3635 private static final Map <String , String > regionsByEndpoint ;
3736
3837 static {
You can’t perform that action at this time.
0 commit comments