Skip to content

HDFS-17956. Bound TestBackupNode.waitCheckpointDone with timeout - #8650

Open
pan3793 wants to merge 1 commit into
apache:trunkfrom
pan3793:HDFS-17956
Open

HDFS-17956. Bound TestBackupNode.waitCheckpointDone with timeout#8650
pan3793 wants to merge 1 commit into
apache:trunkfrom
pan3793:HDFS-17956

Conversation

@pan3793

@pan3793 pan3793 commented Aug 2, 2026

Copy link
Copy Markdown
Member

Description of PR

Replace the unbounded do-while polling loop in waitCheckpointDone with
GenericTestUtils.waitFor, capping the wait at 60 seconds.

When a checkpoint never arrives, the loop sleeps indefinitely, hanging
the surefire fork until forkedProcessTimeoutInSeconds (900s) kills it.
The fork kill produces a generic "timeout in the fork" error with no
indication of which test hung. The bounded wait converts this into a
fast, clear TimeoutException naming the checkpoint txid that never
advanced.

How was this patch tested?

Verified via GitHub Actions CI on a fork branch. Before the change, the
fork hangs 900s with no indication of the culprit. After the change,
TestBackupNode fails within 60s with:

TimeoutException: Timed out waiting for condition.
Error Message: Checkpoint txid did not advance above 1

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id (HDFS-17956)?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

AI Tooling

If an AI tool was used:

Contains content generated by GLM 5.2

Replace the unbounded do-while polling loop in waitCheckpointDone with
GenericTestUtils.waitFor, capping at 60s. The loop previously slept
indefinitely when a checkpoint never arrived, hanging the surefire fork
until the 900s forkedProcessTimeoutInSeconds killed it, causing the
consistent 'hdfs - other' CI failures on trunk since late July.

Assisted-by: GLM 5.2
@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 6m 58s 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 _
+1 💚 mvninstall 25m 14s trunk passed
+1 💚 compile 1m 0s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 1m 5s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 2s trunk passed
+1 💚 mvnsite 1m 5s trunk passed
+1 💚 javadoc 0m 57s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 57s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 2m 15s trunk passed
+1 💚 shadedclient 17m 9s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 46s the patch passed
+1 💚 compile 0m 40s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 0m 40s the patch passed
+1 💚 compile 0m 44s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 0m 44s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 41s the patch passed
+1 💚 mvnsite 0m 49s the patch passed
+1 💚 javadoc 0m 34s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 35s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 spotbugs 2m 1s the patch passed
+1 💚 shadedclient 16m 51s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 183m 52s hadoop-hdfs in the patch passed.
+1 💚 asflicense 0m 31s The patch does not generate ASF License warnings.
265m 20s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8650/1/artifact/out/Dockerfile
GITHUB PR #8650
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 003b5c9d0248 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / c737880
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-8650/1/testReport/
Max. process+thread count 4414 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8650/1/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.

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