deepujain commented on code in PR #8307:
URL: https://github.com/apache/hadoop/pull/8307#discussion_r4113719480
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java:
##########
@@ -560,4 +561,26 @@ public void testSuffixFromRoot() {
assertNull(root.getParent());
assertEquals(new Path("/bar"), root.suffix("bar"));
}
+
+ /**
+ * HADOOP-19815: Path(String) strips trailing slash; Path(URI) preserves it.
+ * So URI.resolve() behavior differs: String-constructed dir path resolves
+ * "x" to host/x; URI-constructed dir path resolves "x" to host/dir/x.
+ */
+ @Test
+ @Timeout(value = 30)
+ public void testTrailingSlashAndUriResolve() throws URISyntaxException {
Review Comment:
Yes. Removed the partial assertion migrations in ba2c93d6 and restored all
six ViewFS/ChRootedFS test files to the base. The diff now contains only the
Path Javadocs and the new constructor/URI resolution testcase. TestPath passes:
24 tests, no failures or errors, 3 platform-specific skips. The description now
matches this scope.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]