Priya-it opened a new pull request, #5002: URL: https://github.com/apache/hbase/pull/5002
**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 prevent flaky test failures. **Why the test fails** This test is failed when it waits until at least one eviction has run at Line 144 in TestLruBlockCache.java. From our analysis, we observed that increasing a bit more waiting time can reduce this flaky failure. The mentioned test fails due to different non-deterministic characteristics of the source code such as different thread interleaving, network issue or improper waiting time. **Reproduce the test failure** I run 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 to overcome the test failure. hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestLruBlockCache.java#144 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
