Skip to content

HDFS-11161. [CI TEST] Verify hadoop-bos CI fixes#8363

Draft
yangdong2398 wants to merge 4 commits intoapache:trunkfrom
yangdong2398:HDFS-11161-ci-test
Draft

HDFS-11161. [CI TEST] Verify hadoop-bos CI fixes#8363
yangdong2398 wants to merge 4 commits intoapache:trunkfrom
yangdong2398:HDFS-11161-ci-test

Conversation

@yangdong2398
Copy link

CI Verification PR (Draft - Will be closed after CI passes)

This is a temporary Draft PR to verify CI fixes before updating the main PR #8347.

Changes being verified:

  • SpotBugs: Fix DLS_DEAD_LOCAL_STORE in BaiduBosFileSystem.delete()
  • Checkstyle: Fix VisibilityModifier, HiddenField, add suppressions
  • Unit Tests: BosContract extends AbstractBondedFSContract (skip vs error)

DO NOT MERGE - This will be closed once CI passes. Fixes will be applied to PR #8347.

yangdongdong01 and others added 3 commits March 16, 2026 15:45
Add hadoop-bos module to hadoop-cloud-storage-project providing Baidu
Object Storage (BOS) FileSystem implementation using the bos:// URI
scheme.

The module includes:
- BaiduBosFileSystem: core FileSystem implementation for BOS
- Support for both flat and hierarchical namespace modes
- Multipart upload for large files
- CRC32C checksum compatible with HDFS for DistCp
- Pluggable credential providers (configuration-based and env-variable-based)
- Hadoop FileSystem contract tests
- Shaded BOS SDK and transitive dependencies (jackson, httpcomponents,
  guava, commons-logging, commons-lang, commons-codec) under bfs.* prefix
  to avoid classpath conflicts
- Integration into hadoop-project, hadoop-cloud-storage, and
  hadoop-cloud-storage-dist parent POMs
- Standard core-site.xml + XInclude auth-keys.xml test credential pattern
- tests-off/tests-on profiles to auto-skip tests when credentials absent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Exclude EPL-licensed paho and CVE-affected bcprov-jdk15on deps
- Relocate shaded packages to org.apache.hadoop.fs.bos.shaded.*
- Remove jackson/commons-logging from shade (unused/bridged)
- Use skipITs instead of maven.test.skip following AWS model
- Fix BosOutputStream close() to abort multipart upload on failure
- Fix BceCredentialsProvider mutual recursion causing StackOverflow
- Fix BosInputStream close() synchronization and skip statistics
- Restore interrupt flag on InterruptedException in retry loops
- Cancel all futures on rename failure in NonHierarchyStore
- Shut down thread pool in BosNativeFileSystemStore.close()
- Add abortMultipartUpload to BosClientProxy interface
- Throw IOException on invalid upload ID in completeMultipartUpload
- Remove credential values from debug logs
- Fix delete() to check existence in hierarchy+recursive path
- Change BosOutputStream fields from public to private/private final
- Use UnsupportedOperationException for append() and truncate()
- Use ContentSummary.Builder instead of deprecated constructor
- Implement Closeable on BosBlockBuffer
- Use ThreadLocalRandom instead of Random in BosRandomRetryPolicy
- Remove misleading constructor from BaiduBosFileSystemAdapter
- Make findbugs-exclude.xml suppressions more precise
- Use getDeclaredConstructor().newInstance() instead of deprecated API
- Fix EnvironmentVariableCredentialsProvider logger class

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix SpotBugs DLS_DEAD_LOCAL_STORE in BaiduBosFileSystem.delete()
- Fix checkstyle VisibilityModifier: BosBlockBuffer fields private + getters
- Fix checkstyle HiddenField: rename shadowing params in private methods
- Add checkstyle-suppressions.xml for override method HiddenField,
  VisibilityModifier, ParameterNumber, and LineLength
- Fix contract tests: BosContract extends AbstractBondedFSContract
  so tests skip (not error) when credentials are not configured

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 xmllint 0m 1s xmllint was not available.
+0 🆗 markdownlint 0m 1s markdownlint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 21 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 54s Maven dependency ordering for branch
+1 💚 mvninstall 41m 37s trunk passed
+1 💚 compile 15m 48s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 16m 35s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 6m 8s trunk passed
+1 💚 mvnsite 3m 3s trunk passed
+1 💚 javadoc 3m 7s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 3m 25s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+0 🆗 spotbugs 0m 49s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 44s branch/hadoop-cloud-storage-project/hadoop-cloud-storage no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 43s branch/hadoop-cloud-storage-project/hadoop-cloud-storage-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 28m 26s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 35s Maven dependency ordering for patch
+1 💚 mvninstall 6m 25s the patch passed
+1 💚 compile 15m 22s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 15m 22s the patch passed
+1 💚 compile 16m 31s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 16m 31s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 5m 30s /results-checkstyle-root.txt root: The patch generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
+1 💚 mvnsite 4m 29s the patch passed
+1 💚 javadoc 4m 32s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 4m 29s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+0 🆗 spotbugs 0m 48s hadoop-project has no data from spotbugs
-1 ❌ spotbugs 0m 55s /patch-spotbugs-hadoop-cloud-storage-project_hadoop-bos.txt hadoop-bos in the patch failed.
-1 ❌ spotbugs 1m 8s /patch-spotbugs-hadoop-cloud-storage-project.txt hadoop-cloud-storage-project in the patch failed.
+0 🆗 spotbugs 0m 49s hadoop-cloud-storage-project/hadoop-cloud-storage has no data from spotbugs
+0 🆗 spotbugs 0m 49s hadoop-cloud-storage-project/hadoop-cloud-storage-dist has no data from spotbugs
+1 💚 shadedclient 28m 8s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 46s hadoop-project in the patch passed.
+1 💚 unit 1m 8s hadoop-bos in the patch passed.
+1 💚 unit 2m 33s hadoop-cloud-storage-project in the patch passed.
+1 💚 unit 0m 48s hadoop-cloud-storage in the patch passed.
+1 💚 unit 0m 48s hadoop-cloud-storage-dist in the patch passed.
+1 💚 asflicense 1m 15s The patch does not generate ASF License warnings.
231m 47s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8363/1/artifact/out/Dockerfile
GITHUB PR #8363
Optional Tests dupname asflicense codespell detsecrets xmllint compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle markdownlint
uname Linux e17b820d1728 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 / 8b9e34c
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-8363/1/testReport/
Max. process+thread count 611 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-cloud-storage-project/hadoop-bos hadoop-cloud-storage-project hadoop-cloud-storage-project/hadoop-cloud-storage hadoop-cloud-storage-project/hadoop-cloud-storage-dist U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8363/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.

… JavadocPackage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 12m 58s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 2s No case conflicting files found.
+0 🆗 codespell 0m 2s codespell was not available.
+0 🆗 detsecrets 0m 2s detect-secrets was not available.
+0 🆗 xmllint 0m 2s xmllint was not available.
+0 🆗 markdownlint 0m 0s markdownlint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 23 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 23s Maven dependency ordering for branch
+1 💚 mvninstall 42m 54s trunk passed
+1 💚 compile 16m 6s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 16m 14s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 5m 25s trunk passed
+1 💚 mvnsite 3m 29s trunk passed
+1 💚 javadoc 3m 33s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 3m 34s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+0 🆗 spotbugs 0m 50s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 50s branch/hadoop-cloud-storage-project/hadoop-cloud-storage no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 50s branch/hadoop-cloud-storage-project/hadoop-cloud-storage-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 28m 16s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for patch
+1 💚 mvninstall 6m 27s the patch passed
+1 💚 compile 15m 14s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 15m 14s the patch passed
+1 💚 compile 16m 24s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 16m 24s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 5m 23s the patch passed
+1 💚 mvnsite 4m 27s the patch passed
+1 💚 javadoc 4m 36s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 4m 25s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+0 🆗 spotbugs 0m 50s hadoop-project has no data from spotbugs
-1 ❌ spotbugs 0m 55s /patch-spotbugs-hadoop-cloud-storage-project_hadoop-bos.txt hadoop-bos in the patch failed.
-1 ❌ spotbugs 1m 7s /patch-spotbugs-hadoop-cloud-storage-project.txt hadoop-cloud-storage-project in the patch failed.
+0 🆗 spotbugs 0m 51s hadoop-cloud-storage-project/hadoop-cloud-storage has no data from spotbugs
+0 🆗 spotbugs 0m 49s hadoop-cloud-storage-project/hadoop-cloud-storage-dist has no data from spotbugs
+1 💚 shadedclient 27m 51s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 43s hadoop-project in the patch passed.
+1 💚 unit 1m 7s hadoop-bos in the patch passed.
+1 💚 unit 2m 33s hadoop-cloud-storage-project in the patch passed.
+1 💚 unit 0m 49s hadoop-cloud-storage in the patch passed.
+1 💚 unit 0m 49s hadoop-cloud-storage-dist in the patch passed.
+1 💚 asflicense 1m 15s The patch does not generate ASF License warnings.
245m 20s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8363/2/artifact/out/Dockerfile
GITHUB PR #8363
Optional Tests dupname asflicense codespell detsecrets xmllint compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle markdownlint
uname Linux cb5f28593cab 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 / 9806166
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-8363/2/testReport/
Max. process+thread count 613 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-cloud-storage-project/hadoop-bos hadoop-cloud-storage-project hadoop-cloud-storage-project/hadoop-cloud-storage hadoop-cloud-storage-project/hadoop-cloud-storage-dist U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8363/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.

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.

2 participants