Skip to content

Conversation

@Apache9
Copy link
Contributor

@Apache9 Apache9 commented Jan 7, 2026

Use Awaitility instead of the unstable one time wait/notifyAll, and alsop upgrade to JUnit5

Use Awaitility instead of the unstable one time wait/notifyAll, and
alsop upgrade to JUnit5
@Apache9 Apache9 self-assigned this Jan 7, 2026
@Apache9 Apache9 requested review from NihalJain and anmolnar January 7, 2026 11:00
@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 30s 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 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ master Compile Tests _
+1 💚 mvninstall 3m 2s master passed
+1 💚 compile 0m 36s master passed
+1 💚 checkstyle 0m 12s master passed
+1 💚 spotbugs 0m 26s master passed
+1 💚 spotless 0m 40s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 mvninstall 2m 25s the patch passed
+1 💚 compile 0m 34s the patch passed
+1 💚 javac 0m 34s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 12s the patch passed
+1 💚 xmllint 0m 0s No new issues.
+1 💚 spotbugs 0m 32s the patch passed
+1 💚 hadoopcheck 8m 48s Patch does not cause any errors with Hadoop 3.3.6 3.4.1.
+1 💚 spotless 0m 33s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 9s The patch does not generate ASF License warnings.
25m 2s
Subsystem Report/Notes
Docker ClientAPI=1.48 ServerAPI=1.48 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7600/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7600
Optional Tests dupname asflicense javac codespell detsecrets xmllint hadoopcheck spotless compile spotbugs checkstyle hbaseanti
uname Linux 43fefd13cfe7 6.8.0-1024-aws #26~22.04.1-Ubuntu SMP Wed Feb 19 06:54:57 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 0be5fbf
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 84 (vs. ulimit of 30000)
modules C: hbase-common U: hbase-common
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7600/1/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3 xmllint=20913
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 54s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚 mvninstall 4m 35s master passed
+1 💚 compile 0m 36s master passed
+1 💚 javadoc 0m 31s master passed
+1 💚 shadedjars 8m 1s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 56s the patch passed
+1 💚 compile 0m 33s the patch passed
+1 💚 javac 0m 33s the patch passed
+1 💚 javadoc 0m 30s the patch passed
+1 💚 shadedjars 8m 16s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚 unit 3m 31s hbase-common in the patch passed.
32m 53s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7600/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #7600
Optional Tests javac javadoc unit shadedjars compile
uname Linux f111ce3a1e81 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 0be5fbf
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7600/1/testReport/
Max. process+thread count 317 (vs. ulimit of 30000)
modules C: hbase-common U: hbase-common
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7600/1/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@anmolnar anmolnar left a comment

Choose a reason for hiding this comment

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

Lgtm. Getting rid of Thread.sleep()s is good, but why do you say that wait()/notify() is unstable?

@Apache9
Copy link
Contributor Author

Apache9 commented Jan 8, 2026

Lgtm. Getting rid of Thread.sleep()s is good, but why do you say that wait()/notify() is unstable?

I mean 'one time' wait/notifyAll. Usually you need to use a while loop and a condition to do waiting, this is the javadoc for wait method in Java

     * A thread can wake up without being notified, interrupted, or timing out, a
     * so-called <em>spurious wakeup</em>.  While this will rarely occur in practice,
     * applications must guard against it by testing for the condition that should
     * have caused the thread to be awakened, and continuing to wait if the condition
     * is not satisfied. See the example below.

@Apache9 Apache9 merged commit e4de9c9 into apache:master Jan 8, 2026
1 check passed
Apache9 added a commit that referenced this pull request Jan 8, 2026
Use Awaitility instead of the unstable one time wait/notifyAll, and
alsop upgrade to JUnit5

Signed-off-by: Andor Molnár <andor@apache.org>
(cherry picked from commit e4de9c9)
Apache9 added a commit that referenced this pull request Jan 8, 2026
Use Awaitility instead of the unstable one time wait/notifyAll, and
alsop upgrade to JUnit5

Signed-off-by: Andor Molnár <andor@apache.org>
(cherry picked from commit e4de9c9)
Apache9 added a commit that referenced this pull request Jan 8, 2026
Use Awaitility instead of the unstable one time wait/notifyAll, and
alsop upgrade to JUnit5

Signed-off-by: Andor Molnár <andor@apache.org>
(cherry picked from commit e4de9c9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants