Skip to content

Commit ea1308a

Browse files
committed
Test fix
1 parent 8291482 commit ea1308a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private URI getUri(URI uri, String supportedScheme,
335335
int port = uri.getPort();
336336
port = (port == -1 ? defaultPort : port);
337337
if (port == -1) { // no port supplied and default port is not specified
338-
return URI.create(supportedScheme + "://" + authority);
338+
return URI.create(supportedScheme + "://" + authority + "/");
339339
}
340340
return new URI(supportedScheme + "://" + uri.getHost() + ":" + port);
341341
}

0 commit comments

Comments
 (0)