hbase icon indicating copy to clipboard operation
hbase copied to clipboard

Reducing flakiness by increasing waiting time

Open java-codehunger opened this issue 2 years ago • 3 comments

What is the purpose of this PR

  • This PR fixes the flaky test org.apache.hadoop.hbase.io.hfile.TestLruBlockCache#testBackgroundEvictionThread
  • Fixing the flaky test will reduce the chances of failures.

Why the test fails This test fails when it waits and does not find any eviction at Line 144 in TestLruBlockCache.java. From our analysis, we observed that increasing the waiting time a bit more can reduce the chance of flaky failure.

Reproduce the test failure I ran the test many times. The command to observe the flaky test failure is mvn test -pl hbase-server -Dtest=org.apache.hadoop.hbase.io.hfile.TestLruBlockCache#testBackgroundEvictionThread

Expected result The tests should run successfully when running with the same command.

Actual Result We get the failure: [ERROR] Failures: [ERROR] TestLruBlockCache.testBackgroundEvictionThread:144 Waiting timed out after [30,000] msec Eviction never happened. [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

Fix Increasing the waiting time can help reduce the flaky test failures. hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestLruBlockCache.java#144

java-codehunger avatar Jan 31 '23 01:01 java-codehunger

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 38s Docker mode activated.
_ Prechecks _
+1 :green_heart: dupname 0m 0s No case conflicting files found.
+1 :green_heart: hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 :green_heart: @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+1 :green_heart: mvninstall 3m 37s master passed
+1 :green_heart: compile 2m 25s master passed
+1 :green_heart: checkstyle 0m 34s master passed
+1 :green_heart: spotless 0m 40s branch has no errors when running spotless:check.
+1 :green_heart: spotbugs 1m 24s master passed
_ Patch Compile Tests _
+1 :green_heart: mvninstall 3m 15s the patch passed
+1 :green_heart: compile 2m 22s the patch passed
+1 :green_heart: javac 2m 22s the patch passed
+1 :green_heart: checkstyle 0m 32s the patch passed
+1 :green_heart: whitespace 0m 0s The patch has no whitespace issues.
+1 :green_heart: hadoopcheck 12m 43s Patch does not cause any errors with Hadoop 3.2.4 3.3.4.
+1 :green_heart: spotless 0m 38s patch has no errors when running spotless:check.
+1 :green_heart: spotbugs 1m 27s the patch passed
_ Other Tests _
+1 :green_heart: asflicense 0m 9s The patch does not generate ASF License warnings.
38m 4s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5002
Optional Tests dupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile
uname Linux 102017e43045 5.4.0-1094-aws #102~18.04.1-Ubuntu SMP Tue Jan 10 21:07:03 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 76207257bb
Default Java Eclipse Adoptium-11.0.17+8
Max. process+thread count 84 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/console
versions git=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Jan 31 '23 02:01 Apache-HBase

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 43s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 :green_heart: mvninstall 3m 40s master passed
+1 :green_heart: compile 0m 46s master passed
+1 :green_heart: shadedjars 5m 22s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 29s master passed
_ Patch Compile Tests _
+1 :green_heart: mvninstall 3m 26s the patch passed
+1 :green_heart: compile 0m 44s the patch passed
+1 :green_heart: javac 0m 44s the patch passed
+1 :green_heart: shadedjars 5m 13s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 25s the patch passed
_ Other Tests _
-1 :x: unit 242m 1s hbase-server in the patch failed.
268m 7s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5002
Optional Tests javac javadoc unit shadedjars compile
uname Linux def306315087 5.4.0-1094-aws #102~18.04.1-Ubuntu SMP Tue Jan 10 21:07:03 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 76207257bb
Default Java Temurin-1.8.0_352-b08
unit https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-hbase-server.txt
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/testReport/
Max. process+thread count 2555 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Jan 31 '23 06:01 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 1m 37s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 :green_heart: mvninstall 4m 30s master passed
+1 :green_heart: compile 1m 4s master passed
+1 :green_heart: shadedjars 5m 23s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 34s master passed
_ Patch Compile Tests _
+1 :green_heart: mvninstall 4m 6s the patch passed
+1 :green_heart: compile 1m 3s the patch passed
+1 :green_heart: javac 1m 3s the patch passed
+1 :green_heart: shadedjars 5m 54s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 29s the patch passed
_ Other Tests _
+1 :green_heart: unit 240m 52s hbase-server in the patch passed.
270m 10s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5002
Optional Tests javac javadoc unit shadedjars compile
uname Linux 637a0c66238e 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 76207257bb
Default Java Eclipse Adoptium-11.0.17+8
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/testReport/
Max. process+thread count 2426 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5002/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Jan 31 '23 06:01 Apache-HBase