Skip to content

HADOOP-19815. Document Path trailing slash and URI resolution semantics - #8307

Merged
steveloughran merged 5 commits into
apache:trunkfrom
deepujain:HADOOP-19815-path-uri-trailing-slash-docs
Sep 27, 2026
Merged

steveloughran merged 5 commits into
apache:trunkfrom
deepujain:HADOOP-19815-path-uri-trailing-slash-docs

Conversation

@deepujain

@deepujain deepujain commented Mar 7, 2026 •

Copy link
Copy Markdown
Contributor

Description of PR

Constructing a Path from a string removes a trailing slash, which can make a later URI.resolve() resolve against the wrong directory for the caller's intent. For example, resolving x against new Path("hdfs://host/dir/").toUri() produces hdfs://host/x, while constructing the Path from a URI preserves the slash and produces hdfs://host/dir/x.

This documents that distinction in Path and adds one regression test covering both constructors and their resolution results. Runtime behavior stays the same. Following review, the partial AssertJ migrations in the existing ViewFS and ChRootedFS tests have been removed.

Fixes HADOOP-19815.

How was this patch tested?

On ba2c93d6, TestPath passed: 24 tests, 0 failures, 0 errors, 3 platform-specific skips. Validation ran in a disposable Linux container with Java 17 and Maven 3.9.15.

mvn -B -ntp -pl hadoop-common-project/hadoop-common -am -Dtest=TestPath -Dsurefire.failIfNoSpecifiedTests=false -Dmaven.test.failure.ignore=false test

git diff --check also passed. The six restored ViewFS/ChRootedFS test files match the base exactly; an independent scope review confirmed only the Javadocs and new testcase remain. Hosted CI will validate the pushed head separately.

The existing trunk SpotBugs warning on McpHttpServlet.requestHandler is tracked separately by HADOOP-19993 / #8753.

For code changes:

  • The title starts with HADOOP-19815.
  • Object storage integration: not applicable to this documentation/test change.
  • No new dependencies are introduced.
  • No LICENSE or NOTICE updates are needed.

AI Tooling

Contains content generated by Codex.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 53s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 50m 25s trunk passed
+1 💚 compile 19m 48s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 18m 18s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 1m 27s trunk passed
+1 💚 mvnsite 1m 59s trunk passed
+1 💚 javadoc 1m 29s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 25s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 3m 35s trunk passed
+1 💚 shadedclient 36m 53s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 35s the patch passed
+1 💚 compile 17m 10s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 17m 10s the patch passed
+1 💚 compile 18m 0s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 18m 0s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 25s hadoop-common-project/hadoop-common: The patch generated 0 new + 19 unchanged - 1 fixed = 19 total (was 20)
+1 💚 mvnsite 1m 57s the patch passed
+1 💚 javadoc 1m 22s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 20s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 3m 22s the patch passed
+1 💚 shadedclient 36m 38s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 22m 38s hadoop-common in the patch passed.
+1 💚 asflicense 1m 11s The patch does not generate ASF License warnings.
243m 50s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/1/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 8807479cfef8 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8d20f8e
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/1/testReport/
Max. process+thread count 1285 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/1/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 55s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 49m 29s trunk passed
+1 💚 compile 18m 48s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 18m 23s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 1m 26s trunk passed
+1 💚 mvnsite 2m 7s trunk passed
+1 💚 javadoc 1m 23s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 21s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 3m 18s trunk passed
+1 💚 shadedclient 37m 34s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 19s the patch passed
+1 💚 compile 17m 56s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 17m 56s the patch passed
+1 💚 compile 18m 1s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 18m 1s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 26s hadoop-common-project/hadoop-common: The patch generated 0 new + 19 unchanged - 1 fixed = 19 total (was 20)
+1 💚 mvnsite 1m 55s the patch passed
+1 💚 javadoc 1m 20s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 22s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 3m 23s the patch passed
+1 💚 shadedclient 36m 8s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 22m 45s hadoop-common in the patch passed.
+1 💚 asflicense 1m 13s The patch does not generate ASF License warnings.
242m 48s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/2/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 94e146a997d9 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3ebbf91
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/2/testReport/
Max. process+thread count 1316 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/2/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain

Copy link
Copy Markdown
Contributor Author

My JIRA id is deepujain

@ctubbsii ctubbsii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to the changes to the docs, and the addition of the test. However, it does not fully resolve the issue described in the JIRA issue. To fully resolve the issue, the FileSystem methods need to be fixed, because their trailing slashes do matter.

@github-actions github-actions Bot added the HDFS label Mar 9, 2026
@deepujain

Copy link
Copy Markdown
Contributor Author

@ctubbsii thanks for the review. I have made additional changes. Please take another look when you have a moment.

@ctubbsii ctubbsii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an improvement, but I had a question about how API changes should be marked in my below comments.

Comment thread hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java Outdated
Comment thread hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java Outdated
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 22s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 9s Maven dependency ordering for branch
+1 💚 mvninstall 29m 51s trunk passed
+1 💚 compile 10m 11s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 10m 15s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 3m 14s trunk passed
+1 💚 mvnsite 1m 42s trunk passed
+1 💚 javadoc 1m 16s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 15s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 3m 39s trunk passed
+1 💚 shadedclient 20m 38s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 19s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 24s /patch-mvninstall-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ compile 1m 5s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javac 1m 5s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ compile 1m 5s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ javac 1m 5s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 3m 0s /results-checkstyle-root.txt root: The patch generated 9 new + 326 unchanged - 5 fixed = 335 total (was 331)
-1 ❌ mvnsite 0m 24s /patch-mvnsite-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ javadoc 0m 18s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javadoc 0m 17s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ spotbugs 0m 23s /patch-spotbugs-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ shadedclient 5m 13s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 19m 15s /patch-unit-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
-1 ❌ unit 0m 23s /patch-unit-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
+1 💚 asflicense 0m 17s The patch does not generate ASF License warnings.
122m 10s
Reason Tests
Failed junit tests hadoop.fs.TestDefaultUri
hadoop.security.TestLdapGroupsMappingWithBindUserSwitch
hadoop.fs.viewfs.TestViewFsLocalFs
hadoop.fs.viewfs.TestViewFileSystemOverloadSchemeLocalFileSystem
hadoop.fs.TestTruncatedInputBug
hadoop.io.TestSequenceFileSync
hadoop.io.TestMapFile
hadoop.fs.viewfs.TestViewFSOverloadSchemeCentralMountTableConfig
hadoop.fs.viewfs.TestViewFsTrash
hadoop.io.file.tfile.TestTFileNoneCodecsJClassComparatorByteArrays
hadoop.io.file.tfile.TestTFileNoneCodecsStreams
hadoop.util.TestDiskChecker
hadoop.fs.TestFilterFileSystem
hadoop.io.file.tfile.TestVLong
hadoop.fs.contract.rawlocal.TestRawlocalContractSeek
hadoop.fs.shell.TestTextCommand
hadoop.fs.contract.localfs.TestLocalFSContractAppend
hadoop.fs.TestChecksumFs
hadoop.io.TestSetFile
hadoop.fs.viewfs.TestHCFSMountTableConfigLoader
hadoop.fs.TestFsShellList
hadoop.fs.TestGetEnclosingRoot
hadoop.fs.contract.rawlocal.TestRawlocalContractOpen
hadoop.fs.TestRawLocalFileSystemContract
hadoop.fs.contract.rawlocal.TestRawlocalContractMkdir
hadoop.fs.TestSymlinkLocalFSFileContext
hadoop.fs.viewfs.TestFcMainOperationsLocalFs
hadoop.fs.contract.localfs.TestLocalFSContractDelete
hadoop.fs.TestChecksumFileSystem
hadoop.io.file.tfile.TestTFile
hadoop.fs.viewfs.TestViewFileSystemLocalFileSystem
hadoop.fs.impl.prefetch.TestBlockCache
hadoop.fs.viewfs.TestViewFsWithAuthorityLocalFs
hadoop.fs.TestSymlinkLocalFSFileSystem
hadoop.fs.TestFsUrlConnectionPath
hadoop.fs.contract.localfs.TestLocalFSContractGetEnclosingRoot
hadoop.io.TestSecureIOUtils
hadoop.io.file.tfile.TestTFileSplit
hadoop.fs.sftp.TestSFTPFileSystem
hadoop.fs.viewfs.TestViewFileSystemDelegation
hadoop.fs.shell.TestCopyFromLocal
hadoop.fs.TestFileContextResolveAfs
hadoop.io.TestSequenceFileSerialization
hadoop.fs.contract.rawlocal.TestRawLocalContractVectoredRead
hadoop.io.TestBloomMapFile
hadoop.fs.shell.TestPathData
hadoop.util.TestBasicDiskValidator
hadoop.fs.TestLocalFileSystem
hadoop.fs.TestFileUtil
hadoop.fs.TestGetFileBlockLocations
hadoop.fs.shell.TestCopyToLocal
hadoop.fs.shell.TestCopyPreserveFlag
hadoop.io.compress.TestBZip2Codec
hadoop.io.compress.TestCodec
hadoop.io.nativeio.TestNativeIO
hadoop.fs.viewfs.TestViewFileSystemWithAuthorityLocalFileSystem
hadoop.fs.TestFileContext
hadoop.io.file.tfile.TestTFileComparator2
hadoop.fs.contract.localfs.TestLocalFSContractCreate
hadoop.fs.contract.rawlocal.TestRawLocalContractBulkDelete
hadoop.io.TestSequenceFile
hadoop.util.TestGenericOptionsParser
hadoop.fs.TestAvroFSInput
hadoop.fs.TestTrash
hadoop.fs.TestFileContextDeleteOnExit
hadoop.fs.TestPath
hadoop.fs.contract.localfs.TestLocalFSContractLoaded
hadoop.io.file.tfile.TestTFileNoneCodecsByteArrays
hadoop.io.file.tfile.TestTFileSeqFileComparison
hadoop.fs.viewfs.TestFcCreateMkdirLocalFs
hadoop.fs.contract.rawlocal.TestRawlocalContractGetFileStatus
hadoop.util.TestRunJar
hadoop.fs.viewfs.TestChRootedFs
hadoop.io.file.tfile.TestTFileComparators
hadoop.fs.TestLocalFsFCStatistics
hadoop.fs.contract.localfs.TestLocalFSContractVectoredRead
hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
hadoop.fs.TestFsShellTouch
hadoop.fs.shell.TestCpCommand
hadoop.fs.contract.rawlocal.TestRawlocalContractDelete
hadoop.io.compress.lz4.TestLz4CompressorDecompressor
hadoop.security.alias.TestCredShell
hadoop.fs.TestFSMainOperationsLocalFileSystem
hadoop.crypto.TestCryptoStreamsForLocalFS
hadoop.fs.contract.rawlocal.TestRawlocalContractAppend
hadoop.security.alias.TestCredentialProviderFactory
hadoop.fs.contract.localfs.TestLocalFSContractSeek
hadoop.security.ssl.TestSSLFactory
hadoop.util.TestApplicationClassLoader
hadoop.fs.TestFsShellReturnCode
hadoop.fs.contract.localfs.TestLocalFSContractBulkDelete
hadoop.fs.TestLocalFSFileContextCreateMkdir
hadoop.fs.viewfs.TestChRootedFileSystem
hadoop.io.file.tfile.TestTFileByteArrays
hadoop.io.TestArrayFile
hadoop.fs.TestLocalFSFileContextMainOperations
hadoop.io.file.tfile.TestTFileStreams
hadoop.metrics2.sink.TestRollingFileSystemSinkWithLocal
hadoop.security.TestLdapGroupsMapping
hadoop.fs.contract.rawlocal.TestRawlocalContractPathHandle
hadoop.io.file.tfile.TestTFileJClassComparatorByteArrays
hadoop.fs.contract.localfs.TestLocalFSContractRename
hadoop.security.TestUserGroupInformation
hadoop.fs.TestFcLocalFsPermission
hadoop.fs.shell.TestFsShellConcat
hadoop.fs.contract.rawlocal.TestRawlocalContractRename
hadoop.fs.contract.rawlocal.TestRawlocalContractCreate
hadoop.io.file.tfile.TestTFileUnsortedByteArrays
hadoop.fs.viewfs.TestViewfsFileStatus
hadoop.security.token.TestDtUtilShell
hadoop.fs.TestFileSystemCaching
hadoop.fs.contract.localfs.TestLocalFSContractSetTimes
hadoop.fs.store.TestDataBlocks
hadoop.fs.TestLocalFileSystemPermission
hadoop.util.TestJsonSerialization
hadoop.io.wrappedio.impl.TestWrappedIO
hadoop.fs.contract.localfs.TestLocalFSContractContentSummary
hadoop.fs.viewfs.TestViewFsOverloadSchemeListStatus
hadoop.fs.TestFsShellCopy
hadoop.fs.contract.rawlocal.TestRawlocalContractSetTimes
hadoop.fs.contract.localfs.TestLocalFSContractGetFileStatus
hadoop.fs.viewfs.TestViewFileSystemDelegationTokenSupport
hadoop.io.wrappedio.impl.TestWrappedStatistics
hadoop.io.TestSequenceFileAppend
hadoop.fs.contract.localfs.TestLocalFSContractStreamIOStatistics
hadoop.crypto.key.TestKeyProviderFactory
hadoop.fs.TestStat
hadoop.fs.TestHarFileSystemBasics
hadoop.fs.contract.localfs.TestLocalFSContractOpen
hadoop.fs.TestLocalFSCopyFromLocal
hadoop.fs.TestFcLocalFsUtil
hadoop.fs.contract.localfs.TestLocalFSContractMkdir
hadoop.crypto.key.TestKeyShell
hadoop.fs.viewfs.TestFcPermissionsLocalFs
hadoop.fs.TestFileSystemInitialization
hadoop.fs.contract.rawlocal.TestRawlocalContractGetEnclosingRoot
hadoop.io.file.tfile.TestTFileSeek
hadoop.fs.TestListFiles
hadoop.conf.TestConfiguration
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/3/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 05627802d7dd 5.15.0-171-generic #181-Ubuntu SMP Fri Feb 6 22:44:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / f817f26
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/3/testReport/
Max. process+thread count 3157 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/3/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@ctubbsii

Copy link
Copy Markdown
Member

I really hate yetus being so spammy. It makes it hard to follow the human conversation and makes trying to contribute to Hadoop, even as a reviewer or reporter, extremely painful. Its comments should be collapsed by default.

@deepujain

Copy link
Copy Markdown
Contributor Author

@ctubbsii Thanks for approving the MR.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from f817f26 to 04e6c16 Compare March 27, 2026 05:17
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased on trunk. Fixed bootstrap null-working-directory handling in RawLocalFileSystem and ViewFileSystem, and updated the local filesystem home-directory expectation for directory-form URIs. Ran the impacted targeted Maven tests locally and they passed. Ready for CI.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from 04e6c16 to 2beb43c Compare March 27, 2026 05:31
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 50s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 9s Maven dependency ordering for branch
+1 💚 mvninstall 52m 34s trunk passed
+1 💚 compile 20m 3s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 19m 27s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 5m 54s trunk passed
+1 💚 mvnsite 3m 31s trunk passed
+1 💚 javadoc 2m 26s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 21s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 7m 27s trunk passed
+1 💚 shadedclient 37m 42s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 41s /patch-mvninstall-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ compile 1m 53s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javac 1m 53s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ compile 2m 2s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ javac 2m 2s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 5m 29s /results-checkstyle-root.txt root: The patch generated 9 new + 326 unchanged - 5 fixed = 335 total (was 331)
-1 ❌ mvnsite 0m 49s /patch-mvnsite-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ javadoc 0m 32s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javadoc 0m 32s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ spotbugs 0m 44s /patch-spotbugs-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ shadedclient 8m 59s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 25m 8s /patch-unit-hadoop-common-project_hadoop-common.txt hadoop-common in the patch passed.
-1 ❌ unit 0m 53s /patch-unit-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
+1 💚 asflicense 0m 33s The patch does not generate ASF License warnings.
212m 23s
Reason Tests
Failed junit tests hadoop.fs.shell.TestPathData
hadoop.fs.TestFsShellTouch
hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
hadoop.fs.shell.TestCpCommand
hadoop.fs.TestFsShellCopy
hadoop.fs.shell.TestCopyPreserveFlag
hadoop.fs.TestSymlinkLocalFSFileSystem
hadoop.fs.shell.TestCopyToLocal
hadoop.fs.TestRawLocalFileSystemContract
hadoop.fs.TestFSMainOperationsLocalFileSystem
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/4/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux bc0dc66b58de 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 04e6c16
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/4/testReport/
Max. process+thread count 1297 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/4/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 52s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 53s Maven dependency ordering for branch
+1 💚 mvninstall 51m 1s trunk passed
+1 💚 compile 20m 43s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 18m 55s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 6m 16s trunk passed
+1 💚 mvnsite 3m 30s trunk passed
+1 💚 javadoc 2m 25s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 22s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 6m 56s trunk passed
+1 💚 shadedclient 37m 34s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 44s /patch-mvninstall-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ compile 2m 0s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javac 2m 0s /patch-compile-root-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt root in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ compile 2m 5s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ javac 2m 5s /patch-compile-root-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt root in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 5m 50s /results-checkstyle-root.txt root: The patch generated 9 new + 326 unchanged - 5 fixed = 335 total (was 331)
-1 ❌ mvnsite 0m 50s /patch-mvnsite-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ javadoc 0m 33s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javadoc 0m 29s /patch-javadoc-hadoop-hdfs-project_hadoop-hdfs-client-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt hadoop-hdfs-client in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ spotbugs 0m 49s /patch-spotbugs-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
-1 ❌ shadedclient 10m 9s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 24m 1s /patch-unit-hadoop-common-project_hadoop-common.txt hadoop-common in the patch passed.
-1 ❌ unit 0m 44s /patch-unit-hadoop-hdfs-project_hadoop-hdfs-client.txt hadoop-hdfs-client in the patch failed.
+1 💚 asflicense 0m 32s The patch does not generate ASF License warnings.
211m 14s
Reason Tests
Failed junit tests hadoop.fs.shell.TestPathData
hadoop.fs.TestFsShellTouch
hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
hadoop.fs.shell.TestCpCommand
hadoop.fs.TestFsShellCopy
hadoop.fs.shell.TestCopyPreserveFlag
hadoop.fs.TestSymlinkLocalFSFileSystem
hadoop.fs.shell.TestCopyToLocal
hadoop.fs.TestRawLocalFileSystemContract
hadoop.fs.TestFSMainOperationsLocalFileSystem
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/5/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 74083f56707e 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 2beb43c
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/5/testReport/
Max. process+thread count 3105 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/5/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from 2beb43c to 3d9e7dc Compare March 27, 2026 16:02
@github-actions github-actions Bot removed the HDFS label Mar 27, 2026
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased onto trunk and backed out the broader FileSystem URI changes that were causing the common/viewfs regressions. Kept the Path(String) vs Path(URI) docs/tests, and verified TestPath plus the hadoop-hdfs-client compile locally. Ready for another look.

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 50s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 34s Maven dependency ordering for branch
+1 💚 mvninstall 52m 23s trunk passed
+1 💚 compile 17m 32s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 17m 56s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 5m 52s trunk passed
+1 💚 mvnsite 3m 21s trunk passed
+1 💚 javadoc 2m 30s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 28s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 6m 58s trunk passed
+1 💚 shadedclient 36m 32s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 2m 8s the patch passed
+1 💚 compile 16m 43s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 16m 43s the patch passed
+1 💚 compile 17m 57s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 17m 57s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 55s root: The patch generated 0 new + 330 unchanged - 1 fixed = 330 total (was 331)
+1 💚 mvnsite 3m 20s the patch passed
+1 💚 javadoc 2m 29s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 25s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 7m 21s the patch passed
+1 💚 shadedclient 36m 37s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 22m 58s hadoop-common in the patch passed.
+1 💚 unit 3m 1s hadoop-hdfs-client in the patch passed.
+1 💚 asflicense 1m 13s The patch does not generate ASF License warnings.
274m 36s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/6/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux e36e2ce84d7e 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3d9e7dc
Default Java Ubuntu-17.0.18+8-Ubuntu-124.04.1
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/6/testReport/
Max. process+thread count 1465 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/6/console
versions git=2.43.0 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain

Copy link
Copy Markdown
Contributor Author

CI is still green on the current head, and this branch already has the narrowed scope plus prior approval. @ctubbsii @EnricoMi, when you have a moment, could you please take another look or merge if it is ready? Happy to make any follow-up changes.

@ctubbsii

Copy link
Copy Markdown
Member

@deepujain I would love for it to be merged and closed, but I am not a committer and don't have write access.

@deepujain

Copy link
Copy Markdown
Contributor Author

CI is still green on the current head, and this branch has the narrowed scope plus prior approval. @steveloughran, when you have a moment, could you please take a look or point me to the right committer for this one? Happy to make any follow-up changes.

@steveloughran steveloughran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to assertj asserts to work with junit5 and backports

@ctubbsii

ctubbsii commented Jul 9, 2026

Copy link
Copy Markdown
Member

@steveloughran wrote:

move to assertj asserts to work with junit5 and backports

What does this mean? It doesn't seem related to this PR.

@deepujain

Copy link
Copy Markdown
Contributor Author

Applied the latest review follow-up by moving the updated viewfs equality assertions in this branch to AssertJ, without changing the narrowed scope of the PR.\n\nLocal validation: JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/bin:$PATH mvn -Dmaven.repo.local=/private/tmp/hadoop-m2 test -pl hadoop-common-project/hadoop-common -am -Dtest=TestChRootedFileSystem,TestChRootedFs,TestViewFileSystemWithAuthorityLocalFileSystem,TestViewFsWithAuthorityLocalFs -DskipTests=false

@deepujain

Copy link
Copy Markdown
Contributor Author

Applied the latest review follow-up on July 10, 2026 by moving the updated viewfs equality assertions in this branch to AssertJ, and I do not believe anything else is pending from my side right now. @steveloughran, when you have a moment, could you please take another look or point me to the right committer for this one? Happy to make any follow-up changes.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from d4741ce to aa92e1e Compare July 21, 2026 14:05
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased cleanly onto current trunk at 706d4dcb. git diff --check apache/trunk...origin/HADOOP-19815-path-uri-trailing-slash-docs passes. This host currently has no Java runtime or Maven, so I could not rerun the focused Maven test here; fresh Build and Jenkins checks are queued on 73543f4b. Ready for CI.

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 53s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 27s Maven dependency ordering for branch
+1 💚 mvninstall 51m 48s trunk passed
+1 💚 compile 17m 59s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 18m 5s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 5m 56s trunk passed
+1 💚 mvnsite 3m 24s trunk passed
+1 💚 javadoc 2m 32s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 2m 28s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 7m 6s trunk passed
+1 💚 shadedclient 37m 7s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for patch
+1 💚 mvninstall 2m 9s the patch passed
+1 💚 compile 16m 49s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 16m 49s the patch passed
+1 💚 compile 18m 18s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 18m 18s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 57s root: The patch generated 0 new + 329 unchanged - 2 fixed = 329 total (was 331)
+1 💚 mvnsite 3m 24s the patch passed
+1 💚 javadoc 2m 29s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 2m 29s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 7m 28s the patch passed
+1 💚 shadedclient 37m 48s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 23m 50s hadoop-common in the patch passed.
+1 💚 unit 2m 59s hadoop-hdfs-client in the patch passed.
+1 💚 asflicense 1m 14s The patch does not generate ASF License warnings.
278m 33s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/11/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux fee83138e21a 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 73543f4
Default Java Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/11/testReport/
Max. process+thread count 1469 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/11/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@ctubbsii

Copy link
Copy Markdown
Member

Have you reached out on the Hadoop mailing lists, as mentioned above? I think Hadoop committers aren't watching the GitHub activity from outside contributors.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from 73543f4 to deb4fb9 Compare September 19, 2026 05:01
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased onto trunk a3febb25, converted the four remaining new URI assertions to AssertJ as requested, and removed the stray TestLocalFileSystem whitespace change. Head deb4fb94 passes the six selected Path/local-filesystem/ViewFS suites: 246 tests, 0 failures, 0 errors, 5 skipped, using Java 17/Maven 3.9.15 as a non-root container user with GNU stat. git diff --check passes and fresh CI is running. Ready for re-review of the existing AssertJ request.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 18m 45s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 11s Maven dependency ordering for branch
+1 💚 mvninstall 52m 23s trunk passed
+1 💚 compile 17m 51s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 compile 18m 9s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 checkstyle 6m 1s trunk passed
+1 💚 mvnsite 3m 24s trunk passed
+1 💚 javadoc 2m 30s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 28s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
-1 ❌ spotbugs 3m 14s /branch-spotbugs-hadoop-common-project_hadoop-common-warnings.html hadoop-common-project/hadoop-common in trunk has 1 extant spotbugs warnings.
+1 💚 shadedclient 37m 5s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 2m 8s the patch passed
+1 💚 compile 16m 52s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javac 16m 52s the patch passed
+1 💚 compile 18m 13s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 javac 18m 13s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 51s root: The patch generated 0 new + 329 unchanged - 2 fixed = 329 total (was 331)
+1 💚 mvnsite 3m 24s the patch passed
+1 💚 javadoc 2m 29s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 28s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 spotbugs 7m 25s the patch passed
+1 💚 shadedclient 37m 14s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 23m 33s hadoop-common in the patch passed.
+1 💚 unit 3m 1s hadoop-hdfs-client in the patch passed.
+1 💚 asflicense 1m 11s The patch does not generate ASF License warnings.
295m 29s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/12/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux ba2f95a3f956 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / deb4fb9
Default Java Ubuntu-17.0.20+8-1-24.04-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.12+8-1-24.04-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.20+8-1-24.04-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/12/testReport/
Max. process+thread count 1280 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/12/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain

Copy link
Copy Markdown
Contributor Author

On deb4fb94, Yetus build 12 is red because its trunk baseline reports SE_BAD_FIELD on McpHttpServlet.requestHandler (warning), outside this PR's Path and ViewFS changes. The patch SpotBugs check and both module unit suites passed in the same run, and GitHub Build passed. No code change is needed for that baseline warning; the overall Yetus status remains red.

@deepujain

Copy link
Copy Markdown
Contributor Author

FYI, I have sent a review request to the Hadoop developer mailing list, following the recommendation here. Thanks for pointing me to that channel.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from deb4fb9 to eb60c57 Compare September 21, 2026 18:49
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 55s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 7 new or modified test files.
_ trunk Compile Tests _
+1 💚 mvninstall 48m 23s trunk passed
+1 💚 compile 17m 42s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 compile 18m 9s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 checkstyle 1m 30s trunk passed
+1 💚 mvnsite 2m 2s trunk passed
+1 💚 javadoc 1m 26s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 1m 25s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
-1 ❌ spotbugs 3m 19s /branch-spotbugs-hadoop-common-project_hadoop-common-warnings.html hadoop-common-project/hadoop-common in trunk has 1 extant spotbugs warnings.
+1 💚 shadedclient 36m 43s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 37m 19s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 14s the patch passed
+1 💚 compile 16m 49s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javac 16m 49s the patch passed
+1 💚 compile 18m 13s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 javac 18m 13s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 27s hadoop-common-project/hadoop-common: The patch generated 0 new + 142 unchanged - 2 fixed = 142 total (was 144)
+1 💚 mvnsite 2m 0s the patch passed
+1 💚 javadoc 1m 22s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 1m 22s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 spotbugs 3m 24s the patch passed
+1 💚 shadedclient 36m 39s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 23m 40s hadoop-common in the patch passed.
+1 💚 asflicense 1m 15s The patch does not generate ASF License warnings.
240m 11s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/13/artifact/out/Dockerfile
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 8b093a7fc9ce 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 2fc3bb2
Default Java Ubuntu-17.0.20+8-1-24.04-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.12+8-1-24.04-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.20+8-1-24.04-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/13/testReport/
Max. process+thread count 3112 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/13/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from eb60c57 to 943f933 Compare September 22, 2026 18:53
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 57s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 28s Maven dependency ordering for branch
+1 💚 mvninstall 52m 25s trunk passed
+1 💚 compile 17m 51s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 compile 18m 20s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 checkstyle 5m 59s trunk passed
+1 💚 mvnsite 3m 22s trunk passed
+1 💚 javadoc 2m 32s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 29s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
-1 ❌ spotbugs 3m 16s /branch-spotbugs-hadoop-common-project_hadoop-common-warnings.html hadoop-common-project/hadoop-common in trunk has 1 extant spotbugs warnings.
+1 💚 shadedclient 37m 31s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 2m 9s the patch passed
+1 💚 compile 16m 49s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javac 16m 49s the patch passed
+1 💚 compile 18m 10s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 javac 18m 10s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 56s root: The patch generated 0 new + 329 unchanged - 2 fixed = 329 total (was 331)
+1 💚 mvnsite 3m 24s the patch passed
+1 💚 javadoc 2m 29s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 28s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 spotbugs 7m 28s the patch passed
+1 💚 shadedclient 38m 11s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 23m 49s hadoop-common in the patch passed.
+1 💚 unit 3m 4s hadoop-hdfs-client in the patch passed.
+1 💚 asflicense 1m 11s The patch does not generate ASF License warnings.
279m 46s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/14/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 52dc4d36a76f 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 943f933
Default Java Ubuntu-17.0.20+8-1-24.04-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.12+8-1-24.04-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.20+8-1-24.04-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/14/testReport/
Max. process+thread count 1468 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/14/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

…ash semantics.

Signed-off-by: Deepak Jain <deepujain@gmail.com>
…slash semantics.

Signed-off-by: Deepak Jain <deepujain@gmail.com>
Signed-off-by: Deepak Jain <deepujain@gmail.com>
Signed-off-by: Deepak Jain <deepujain@gmail.com>
@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from 6320053 to 79cb0b5 Compare September 23, 2026 05:08
@deepujain

Copy link
Copy Markdown
Contributor Author

Restored the four existing commits on current trunk 2fc3bb2 after the fork branch lost its commit ancestry. The source tree at the intervening orphan commit matched the previous PR head; all four patches are unchanged according to git range-diff.

Current head: 79cb0b50. git diff --check passes. No new local Maven tests were run for this ancestry-only repair; earlier test results are historical and the new head requires fresh Yetus and Build results.

Contains content generated by Codex.

@deepujain
deepujain force-pushed the HADOOP-19815-path-uri-trailing-slash-docs branch from 79cb0b5 to 8f68aa3 Compare September 23, 2026 05:15
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 36s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 8 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 8s Maven dependency ordering for branch
+1 💚 mvninstall 42m 43s trunk passed
+1 💚 compile 16m 11s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 compile 16m 45s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 checkstyle 5m 31s trunk passed
+1 💚 mvnsite 3m 29s trunk passed
+1 💚 javadoc 2m 43s trunk passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 39s trunk passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
-1 ❌ spotbugs 3m 10s /branch-spotbugs-hadoop-common-project_hadoop-common-warnings.html hadoop-common-project/hadoop-common in trunk has 1 extant spotbugs warnings.
+1 💚 shadedclient 31m 39s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for patch
+1 💚 mvninstall 2m 5s the patch passed
+1 💚 compile 15m 33s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javac 15m 33s the patch passed
+1 💚 compile 16m 54s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 javac 16m 54s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 38s root: The patch generated 0 new + 329 unchanged - 2 fixed = 329 total (was 331)
+1 💚 mvnsite 3m 27s the patch passed
+1 💚 javadoc 2m 40s the patch passed with JDK Ubuntu-21.0.12+8-1-24.04-Ubuntu
+1 💚 javadoc 2m 39s the patch passed with JDK Ubuntu-17.0.20+8-1-24.04-Ubuntu
+1 💚 spotbugs 7m 20s the patch passed
+1 💚 shadedclient 31m 51s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 24m 1s hadoop-common in the patch passed.
+1 💚 unit 3m 10s hadoop-hdfs-client in the patch passed.
+1 💚 asflicense 1m 15s The patch does not generate ASF License warnings.
251m 49s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/16/artifact/out/Dockerfile
GITHUB PR #8307
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 7da0026bd0df 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8f68aa3
Default Java Ubuntu-17.0.20+8-1-24.04-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.12+8-1-24.04-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.20+8-1-24.04-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/16/testReport/
Max. process+thread count 3152 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/16/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@deepujain

Copy link
Copy Markdown
Contributor Author

Jenkins build 16 reports one existing trunk SpotBugs warning: SE_BAD_FIELD on McpHttpServlet.requestHandler; the patch SpotBugs check passed. The warning is still present on current trunk and comes from the MCP framework introduced in #8665, outside this PR's Path documentation and tests. GitHub Build passed on 8f68aa30; the remaining Yetus failure needs the upstream baseline warning corrected before a useful rerun.

@steveloughran

Copy link
Copy Markdown
Contributor

this is adding a spotbugs warning; please fix with a followup of some kind

Bad practice Warning
Code | Warning
-- | --
Se | Class org.apache.hadoop.mcp.McpHttpServlet defines non-transient non-serializable instance field requestHandler
  | Bug type SE_BAD_FIELD In class org.apache.hadoop.mcp.McpHttpServletField org.apache.hadoop.mcp.McpHttpServlet.requestHandlerActual type org.apache.hadoop.mcp.McpRequestHandlerIn McpHttpServlet.java

Bad practice Warnings
Code	Warning
Se	Class org.apache.hadoop.mcp.McpHttpServlet defines non-transient non-serializable instance field requestHandler
[Bug type SE_BAD_FIELD]
In class org.apache.hadoop.mcp.McpHttpServlet
Field org.apache.hadoop.mcp.McpHttpServlet.requestHandler
Actual type org.apache.hadoop.mcp.McpRequestHandler
In McpHttpServlet.java

@steveloughran steveloughran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally looking at this.

with the production code being nothing but a javadoc change, this is low risk production side.

looking at the tests, there's only one new test case, the others seem just a migration of some assertions to assertj, while others in the same test cases are still on junit.

I think those simple migration cases should be reverted, so this patch becomes just the javadocs + new test case. minimal and adds exactly what is needed.

It's not that I don't appreciate the assertj changes, it's just that I think they are a distraction here; it'd be better moving the entire classes to assertj in their own prs

*/
@Test
@Timeout(value = 30)
public void testTrailingSlashAndUriResolve() throws URISyntaxException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main change then, a new test case? The others are a partial move of existing test cases to move from junit assert to assertj?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Removed the partial assertion migrations in ba2c93d 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.

@deepujain

Copy link
Copy Markdown
Contributor Author

The follow-up is already in #8753 (HADOOP-19993), opened by @jojochuang and currently approved. It marks the two McpHttpServlet fields as transient to address this exact SE_BAD_FIELD warning. Build 16's trunk report lists requestHandler; the patch SpotBugs check passed. I'll keep this PR scoped to the Path documentation and new testcase as requested, with #8753 tracking the separate correction.

Signed-off-by: Deepak Jain <deepujain@gmail.com>
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 18m 43s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+1 💚 mvninstall 49m 0s trunk passed
+1 💚 compile 17m 56s trunk passed with JDK Ubuntu-21.0.12.1+1-1-24.04.4-Ubuntu
+1 💚 compile 18m 19s trunk passed with JDK Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
+1 💚 checkstyle 1m 29s trunk passed
+1 💚 mvnsite 1m 59s trunk passed
+1 💚 javadoc 1m 27s trunk passed with JDK Ubuntu-21.0.12.1+1-1-24.04.4-Ubuntu
+1 💚 javadoc 1m 23s trunk passed with JDK Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
-1 ❌ spotbugs 3m 16s /branch-spotbugs-hadoop-common-project_hadoop-common-warnings.html hadoop-common-project/hadoop-common in trunk has 1 extant spotbugs warnings.
+1 💚 shadedclient 36m 41s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 37m 16s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 16s the patch passed
+1 💚 compile 16m 58s the patch passed with JDK Ubuntu-21.0.12.1+1-1-24.04.4-Ubuntu
+1 💚 javac 16m 58s the patch passed
+1 💚 compile 18m 12s the patch passed with JDK Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
+1 💚 javac 18m 12s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 24s hadoop-common-project/hadoop-common: The patch generated 0 new + 56 unchanged - 1 fixed = 56 total (was 57)
+1 💚 mvnsite 2m 1s the patch passed
+1 💚 javadoc 1m 24s the patch passed with JDK Ubuntu-21.0.12.1+1-1-24.04.4-Ubuntu
+1 💚 javadoc 1m 23s the patch passed with JDK Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
+1 💚 spotbugs 3m 24s the patch passed
+1 💚 shadedclient 37m 12s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 23m 41s hadoop-common in the patch passed.
+1 💚 asflicense 1m 14s The patch does not generate ASF License warnings.
259m 36s
Subsystem Report/Notes
Docker ClientAPI=1.56 ServerAPI=1.56 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/17/artifact/out/Dockerfile
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux ab7bb85526c8 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / e8783aa
Default Java Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.12.1+1-1-24.04.4-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.20.1+1-1-24.04-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/17/testReport/
Max. process+thread count 1257 (vs. ulimit of 10000)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8307/17/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@steveloughran
steveloughran merged commit 8545d5e into apache:trunk Sep 27, 2026
2 of 5 checks passed
steveloughran pushed a commit that referenced this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants