Skip to content

HDFS-17179. DFSInputStream should report CorruptMetaHeaderException a… - #8310

Open
deepujain wants to merge 2 commits into
apache:trunkfrom
deepujain:HDFS-17179-report-corrupt-meta-header
Open

HDFS-17179. DFSInputStream should report CorruptMetaHeaderException a…#8310
deepujain wants to merge 2 commits into
apache:trunkfrom
deepujain:HDFS-17179-report-corrupt-meta-header

Conversation

@deepujain

Copy link
Copy Markdown
Contributor

Summary

When a block read fails with CorruptMetaHeaderException (e.g. corrupt or too-short block meta file on the DataNode), DFSInputStream did not add the block to the corrupted set or report it to the NameNode, unlike ChecksumException. Corrupt blocks were therefore not invalidated or re-replicated. This change treats CorruptMetaHeaderException the same as ChecksumException in the client read path so the block is reported to the NameNode and can be re-replicated.

Change

  • DFSInputStream: Import CorruptMetaHeaderException. In readBuffer() (block read loop), add a catch (CorruptMetaHeaderException) that logs, adds the block to corruptedBlocks, and sets retryCurrentNode = false, mirroring the existing ChecksumException handling. In actualGetFromOneDataNode() (fetchBlockByteRange), add a catch (CorruptMetaHeaderException) that logs, adds the block to corruptedBlocks, marks the datanode dead, and throws an IOException, mirroring the ChecksumException handling.
  • TestCorruptMetadataFile: Add testReportCorruptMetaHeaderToNameNode(): create a file, corrupt the block meta file with an invalid 7-byte header, read from the client (expect IOException), then wait until the NameNode’s corrupt block count is 1 (HDFS-17179).

JIRA

Fixes HDFS-17179

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 20s 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 17s Maven dependency ordering for branch
+1 💚 mvninstall 27m 4s trunk passed
+1 💚 compile 3m 1s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 3m 6s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 1m 9s trunk passed
+1 💚 mvnsite 1m 45s trunk passed
+1 💚 javadoc 1m 21s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 30s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 4m 5s trunk passed
+1 💚 shadedclient 16m 46s 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 41s /patch-mvninstall-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch failed.
-1 ❌ compile 0m 53s /patch-compile-hadoop-hdfs-project-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt hadoop-hdfs-project in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ javac 0m 53s /patch-compile-hadoop-hdfs-project-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt hadoop-hdfs-project in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.
-1 ❌ compile 0m 56s /patch-compile-hadoop-hdfs-project-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt hadoop-hdfs-project in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.
-1 ❌ javac 0m 56s /patch-compile-hadoop-hdfs-project-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt hadoop-hdfs-project 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 0m 56s /results-checkstyle-hadoop-hdfs-project.txt hadoop-hdfs-project: The patch generated 2 new + 31 unchanged - 0 fixed = 33 total (was 31)
-1 ❌ mvnsite 0m 42s /patch-mvnsite-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch failed.
+1 💚 javadoc 0m 58s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 0m 57s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
-1 ❌ spotbugs 0m 38s /patch-spotbugs-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch failed.
-1 ❌ shadedclient 6m 57s patch has errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 1m 54s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 0m 45s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch failed.
+1 💚 asflicense 0m 19s The patch does not generate ASF License warnings.
82m 28s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/1/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux f086ceb5e316 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 / bfac4ff
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-8310/1/testReport/
Max. process+thread count 610 (vs. ulimit of 5500)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/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 20m 41s 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 _
+0 🆗 mvndep 2m 14s Maven dependency ordering for branch
+1 💚 mvninstall 54m 16s trunk passed
+1 💚 compile 6m 41s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 6m 59s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 2m 13s trunk passed
+1 💚 mvnsite 3m 12s trunk passed
+1 💚 javadoc 2m 26s 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 8m 12s trunk passed
+1 💚 shadedclient 36m 43s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 31s Maven dependency ordering for patch
+1 💚 mvninstall 2m 16s the patch passed
+1 💚 compile 5m 34s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 5m 34s the patch passed
+1 💚 compile 6m 8s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 6m 8s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 1m 42s /results-checkstyle-hadoop-hdfs-project.txt hadoop-hdfs-project: The patch generated 2 new + 31 unchanged - 0 fixed = 33 total (was 31)
+1 💚 mvnsite 2m 24s the patch passed
+1 💚 javadoc 1m 46s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 43s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 8m 19s the patch passed
+1 💚 shadedclient 40m 44s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 51s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 288m 42s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 52s The patch does not generate ASF License warnings.
508m 31s
Reason Tests
Failed junit tests hadoop.hdfs.server.namenode.ha.TestStandbyCheckpoints
hadoop.hdfs.server.datanode.TestCorruptMetadataFile
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/3/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 80a765d6e368 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 / c81183d
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-8310/3/testReport/
Max. process+thread count 2502 (vs. ulimit of 5500)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/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.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 8s Maven dependency ordering for branch
+1 💚 mvninstall 52m 35s trunk passed
+1 💚 compile 5m 57s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 6m 28s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 2m 14s trunk passed
+1 💚 mvnsite 3m 19s trunk passed
+1 💚 javadoc 2m 27s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 34s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 8m 16s trunk passed
+1 💚 shadedclient 37m 24s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 45s Maven dependency ordering for patch
+1 💚 mvninstall 2m 17s the patch passed
+1 💚 compile 5m 27s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 5m 27s the patch passed
+1 💚 compile 6m 10s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 6m 10s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 1m 46s /results-checkstyle-hadoop-hdfs-project.txt hadoop-hdfs-project: The patch generated 2 new + 31 unchanged - 0 fixed = 33 total (was 31)
+1 💚 mvnsite 2m 23s the patch passed
+1 💚 javadoc 1m 36s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 41s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 7m 39s the patch passed
+1 💚 shadedclient 35m 38s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 36s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 262m 50s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 47s The patch does not generate ASF License warnings.
455m 34s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.TestCorruptMetadataFile
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/4/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 2d3a757d1677 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 / 3d0177c
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-8310/4/testReport/
Max. process+thread count 2587 (vs. ulimit of 5500)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/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.

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch from 3d0177c to 412f3c5 Compare March 18, 2026 16:45
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased on trunk.

Adjusted TestCorruptMetadataFile.testReportCorruptMetaHeaderToNameNode(): when the cluster has a single replica and the meta file is corrupt, the client can see either CorruptMetaHeaderException or a "No live nodes" IOException (depending on whether the failure happens in the initial getBlockReader vs during read). The test now accepts both; it still asserts that the block is reported to the NameNode (corrupt block count becomes 1).

Local tests: ./mvnw test -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false — all 3 tests passed.
Ready for CI.

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch 2 times, most recently from a6f6354 to ef0809a Compare March 27, 2026 05:31
@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 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 51s Maven dependency ordering for branch
+1 💚 mvninstall 50m 44s trunk passed
+1 💚 compile 5m 52s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 compile 6m 23s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 checkstyle 2m 9s trunk passed
+1 💚 mvnsite 3m 14s trunk passed
+1 💚 javadoc 2m 32s trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 2m 31s trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 8m 32s trunk passed
+1 💚 shadedclient 38m 20s 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 19s the patch passed
+1 💚 compile 5m 42s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javac 5m 42s the patch passed
+1 💚 compile 6m 35s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 javac 6m 35s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 1m 50s /results-checkstyle-hadoop-hdfs-project.txt hadoop-hdfs-project: The patch generated 1 new + 31 unchanged - 0 fixed = 32 total (was 31)
+1 💚 mvnsite 2m 35s the patch passed
+1 💚 javadoc 1m 45s the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04
+1 💚 javadoc 1m 47s the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1
+1 💚 spotbugs 7m 53s the patch passed
+1 💚 shadedclient 37m 16s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 39s hadoop-hdfs-client in the patch passed.
+1 💚 unit 271m 26s hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 49s The patch does not generate ASF License warnings.
464m 59s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/7/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux ae9e02dcb906 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 / ef0809a
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-8310/7/testReport/
Max. process+thread count 2518 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/7/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 green on the current head, and this one still has not had a human review. @Hexiaoqiao @ZanderXu, when you have a moment, could you please take a look? Happy to make any follow-up changes.

@deepujain

Copy link
Copy Markdown
Contributor Author

CI is still green on the current head, and this one is still waiting on human review. @hfutatzhanghb @Hexiaoqiao, when you have a moment, could you please take a look? Happy to make any follow-up changes.

@deepujain

Copy link
Copy Markdown
Contributor Author

CI is still green on the current head, and this one is still waiting on HDFS review. @hfutatzhanghb @Hexiaoqiao, when you have a moment, could you please take a look? Happy to make any follow-up changes.

1 similar comment
@deepujain

Copy link
Copy Markdown
Contributor Author

CI is still green on the current head, and this one is still waiting on HDFS review. @hfutatzhanghb @Hexiaoqiao, when you have a moment, could you please take a look? Happy to make any follow-up changes.

@hfutatzhanghb

Copy link
Copy Markdown
Member

CI is still green on the current head, and this one is still waiting on HDFS review. @hfutatzhanghb @Hexiaoqiao, when you have a moment, could you please take a look? Happy to make any follow-up changes.

Sorry for responding too late. Will reivew it quickly

@hfutatzhanghb

Copy link
Copy Markdown
Member

@deepujain Can you fix the checksyle warning? Others LGTM.

@deepujain

Copy link
Copy Markdown
Contributor Author

Removed the redundant same-package import in TestCorruptMetadataFile, which was the remaining new checkstyle warning called out on the current head.\n\nLocal validation:\n- JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home ./mvnw -Dmaven.repo.local=/tmp/hadoop-m2 -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false test\n- direct Checkstyle on TestCorruptMetadataFile now drops the RedundantImport warning and only shows the existing baseline JavadocPackage warning for the package.

@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased this branch onto current apache/trunk so the GitHub Build detection check can see a current base, and kept the redundant-import cleanup on top.\n\nLocal validation on the rebased head: JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home ./mvnw -Dmaven.repo.local=/tmp/hadoop-m2 -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false test

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch from 5e6ae2c to 38cdba4 Compare July 7, 2026 06:58
@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 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 45s Maven dependency ordering for branch
+1 💚 mvninstall 28m 51s trunk passed
+1 💚 compile 3m 18s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 19s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 13s trunk passed
+1 💚 mvnsite 1m 50s trunk passed
+1 💚 javadoc 1m 23s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 26s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 19s trunk passed
+1 💚 shadedclient 21m 5s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 18s Maven dependency ordering for patch
+1 💚 mvninstall 1m 14s the patch passed
+1 💚 compile 2m 46s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 46s the patch passed
+1 💚 compile 3m 4s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 4s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 58s the patch passed
+1 💚 mvnsite 1m 22s the patch passed
+1 💚 javadoc 1m 2s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 1s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 43s the patch passed
+1 💚 shadedclient 22m 19s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 1m 59s hadoop-hdfs-client in the patch passed.
+1 💚 unit 180m 22s hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 32s The patch does not generate ASF License warnings.
290m 2s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/8/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 568c9805a42f 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 / 5e6ae2c
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-8310/8/testReport/
Max. process+thread count 3288 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/8/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

No code changes here. I reran the Build workflow to refresh the red Run / Test hdfs-rbf (Java 17) ubuntu_24-trunk shard. Ready for CI again.

@deepujain

Copy link
Copy Markdown
Contributor Author

Pushed an empty Trigger CI commit to refresh checks on the current head. No code changes in this update. The previous Build failure included unrelated shared test failures outside this HDFS patch, so rerunning against a fresh head now.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 24s 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 _
+0 🆗 mvndep 1m 41s Maven dependency ordering for branch
+1 💚 mvninstall 27m 6s trunk passed
+1 💚 compile 2m 57s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 11s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 14s trunk passed
+1 💚 mvnsite 1m 45s trunk passed
+1 💚 javadoc 1m 25s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 24s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 3s trunk passed
+1 💚 shadedclient 18m 50s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 1m 17s the patch passed
+1 💚 compile 2m 37s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 37s the patch passed
+1 💚 compile 2m 48s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 48s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 57s the patch passed
+1 💚 mvnsite 1m 15s the patch passed
+1 💚 javadoc 0m 56s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 3s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 5s the patch passed
+1 💚 shadedclient 20m 32s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 6s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 183m 28s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 30s The patch does not generate ASF License warnings.
285m 50s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.fsdataset.impl.TestFsVolumeList
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/10/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux c334e464e529 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 / 36d0a86
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-8310/10/testReport/
Max. process+thread count 4671 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/10/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

Pushed another empty Trigger CI commit to refresh the current head. No code changes in this update. The previous failures were outside this DFSInputStream patch: GitHub Build hit the same unrelated TestDSWithMultipleNodeManager shard, and Apache Yetus reported unrelated HDFS flakes/failure in TestNameNodeMXBean, TestPipelinesFailover, and TestStandbyCheckpoints.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 24s 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 44s Maven dependency ordering for branch
+1 💚 mvninstall 27m 18s trunk passed
+1 💚 compile 3m 4s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 9s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 20s trunk passed
+1 💚 mvnsite 1m 57s trunk passed
+1 💚 javadoc 1m 36s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 35s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 24s trunk passed
+1 💚 shadedclient 17m 24s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 21s Maven dependency ordering for patch
+1 💚 mvninstall 1m 17s the patch passed
+1 💚 compile 2m 36s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 36s the patch passed
+1 💚 compile 2m 51s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 51s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 55s the patch passed
+1 💚 mvnsite 1m 25s the patch passed
+1 💚 javadoc 1m 1s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 3s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 3m 59s the patch passed
+1 💚 shadedclient 17m 11s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 0s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 184m 6s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 27s The patch does not generate ASF License warnings.
282m 58s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.fsdataset.impl.TestFsVolumeList
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/11/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux c84e1c909aab 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 / 1a62b51
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-8310/11/testReport/
Max. process+thread count 3974 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/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.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. I reran the fork-side Build workflow on the current head to refresh the red GitHub Actions lane. The remaining Yetus unit failure on this head is TestFsVolumeList, which still looks outside this DFSInputStream patch.

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch from 1a62b51 to dacc840 Compare July 11, 2026 03:48
@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. I reran the current head again on July 12, 2026 to refresh the stale red GitHub Actions lane. The rerun still failed in the shared Run / Test hdfs-rbf (Java 17) ubuntu_24-trunk job, specifically org.apache.hadoop.yarn.applications.distributedshell.TestDSWithMultipleNodeManager in hadoop-yarn-applications-distributedshell, which looks outside this DFSInputStream patch.

If the HDFS-side change itself looks good, @hfutatzhanghb @Hexiaoqiao, could you please take a look when you have a moment? Happy to make any follow-up changes.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. The HDFS-side patch and Yetus signal on the current head are unchanged, and this one is still waiting on human review as of July 20, 2026. @hfutatzhanghb @Hexiaoqiao, when you have a moment, could you please take a look? Happy to make any follow-up changes.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. I reran the existing fork-side Build workflow on the current head again on July 21, 2026, so the stale red GitHub Actions lane is being refreshed now.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. I reran the fork-side Build workflow on July 21, 2026, and the rerun still failed in the shared Run / Test hdfs-rbf (Java 17) ubuntu_24-trunk lane, specifically org.apache.hadoop.yarn.applications.distributedshell.TestDSWithMultipleNodeManager. That still looks outside this DFSInputStream corrupt-metadata patch.

@hfutatzhanghb
hfutatzhanghb requested a review from zhtttylz July 22, 2026 01:57
@hfutatzhanghb

Copy link
Copy Markdown
Member

Hi @deepujain . LGTM. Failed checks is not related to this PR. We can first fix the failed unit tests. @zhtttylz Please also cc . Thanks a lot.

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch from dacc840 to f45fe0a Compare July 22, 2026 05:44
@deepujain

Copy link
Copy Markdown
Contributor Author

Thanks, @hfutatzhanghb. I rebased this branch onto current apache/trunk on July 22, 2026 so the next CI run is tied to a current base.

Fresh local validation on the rebased head:
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 ./mvnw -Dmaven.repo.local=/private/tmp/hadoop-m2 test -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false

Result: TestCorruptMetadataFile passed (3 tests, 0 failures, 0 errors).

No code changes beyond the rebase in this update. @zhtttylz, please take a look when you have a moment. Happy to make any follow-up changes.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 20s 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 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 13s Maven dependency ordering for branch
+1 💚 mvninstall 26m 20s trunk passed
+1 💚 compile 2m 56s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 5s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 17s trunk passed
+1 💚 mvnsite 1m 58s trunk passed
+1 💚 javadoc 1m 39s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 40s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 4m 13s trunk passed
+1 💚 shadedclient 17m 5s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 16s Maven dependency ordering for patch
+1 💚 mvninstall 1m 16s the patch passed
+1 💚 compile 2m 35s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 35s the patch passed
+1 💚 compile 2m 46s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 2m 46s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 54s the patch passed
+1 💚 mvnsite 1m 20s the patch passed
+1 💚 javadoc 1m 0s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 1s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 3m 49s the patch passed
+1 💚 shadedclient 16m 48s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 1s hadoop-hdfs-client in the patch passed.
-1 ❌ unit 188m 21s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
285m 36s
Reason Tests
Failed junit tests hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/13/artifact/out/Dockerfile
GITHUB PR #8310
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 9eb51ccbc0a7 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 / f45fe0a
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-8310/13/testReport/
Max. process+thread count 4433 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8310/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

Copy link
Copy Markdown
Contributor Author

No code changes here. The July 22, 2026 rerun on the rebased head finished with GitHub Build green, and Apache Yetus is now red only on hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes in the hadoop-hdfs unit lane.

That still looks outside this DFSInputStream corrupt-metadata patch, which only touches the corrupt-metadata handling path plus TestCorruptMetadataFile, and the focused local validation on this rebased head is still green:
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 ./mvnw -Dmaven.repo.local=/private/tmp/hadoop-m2 test -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false

If the patch itself looks good, @zhtttylz, please take a look when you have a moment. Happy to make any follow-up changes.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. The July 22, 2026 rebase and focused local TestCorruptMetadataFile validation are still the current signal on this branch, and the remaining Yetus red lane is still TestBalancerWithHANameNodes, which looks outside this patch. If the patch itself looks good, @zhtttylz, could you please take a look when you have a moment? Happy to make any follow-up changes.

@deepujain
deepujain force-pushed the HDFS-17179-report-corrupt-meta-header branch from f45fe0a to 31b71fd Compare August 4, 2026 13:28
@deepujain

Copy link
Copy Markdown
Contributor Author

Rebased this branch onto current apache/trunk on August 4, 2026 and force-pushed the refreshed single commit. No source changes beyond the rebase in this update. The last focused local validation still recorded on this branch is 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 ./mvnw -Dmaven.repo.local=/private/tmp/hadoop-m2 test -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false from July 22, 2026, which passed on that rebased head.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here since the August 4, 2026 rebase onto current apache/trunk.

On the refreshed fork-side run, the failing GitHub Build lanes are stopping in the ubuntu_24 image/container initialization path before checkout/build/test, so this still looks like CI infrastructure on that image path rather than a new DFSInputStream regression from the patch itself.

The earlier focused local validation on this branch remains the latest direct patch signal: TestCorruptMetadataFile passed after the HDFS-17179 fix. If there is a specific additional validation you would like on the rebased head, I can run that next.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes in this update. I reran the fork-side GitHub Build workflow on the current head so the prior Build failure can get a fresh signal; the branch content itself is unchanged from the latest rebase and validation pass.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes in this update. The August 5 rerun progressed past the earlier image/container setup failure and most shards on the current head passed; the only remaining red GitHub Build lane is now Run / Test mr (Java 17) ubuntu_24-trunk, which looks outside this HDFS DFSInputStream patch.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. I reran 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 ./mvnw -Dmaven.repo.local=/private/tmp/hadoop-m2 test -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestCorruptMetadataFile -DskipTests=false on the current head, and it passed locally (3 tests, 0 failures). I also pushed a no-code Trigger CI commit so the stale GitHub Build and pr-merge statuses can refresh on a new head.

@deepujain

Copy link
Copy Markdown
Contributor Author

No code changes here. On the August 6, 2026 rerun, the fork-side Build progressed through image setup/build and most shards passed; the only red shard was Run / Test common (Java 17) ubuntu_24-trunk, where org.apache.hadoop.http.TestSSLHttpServerMTLS.testUntrustedClientIsRejected failed after reruns with SocketException instead of SSLHandshakeException. That still looks outside this DFSInputStream corrupt-metadata patch, and the focused local TestCorruptMetadataFile validation from August 6, 2026 is still green on this head. @zhtttylz, when you have a moment, could you please take a look?

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.

3 participants