We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8257459 commit b6d27f0Copy full SHA for b6d27f0
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/ArnResource.java
@@ -142,7 +142,7 @@ public String getEndpoint() {
142
String format;
143
if(isExpress()) {
144
Optional<String> zoneId = getZoneIdFromResourceName(name);
145
- if(zoneId.isEmpty()) {
+ if(!zoneId.isPresent()) {
146
throw new IllegalArgumentException("Zone ID could not be extracted from S3Express resource name: " + name);
147
}
148
0 commit comments