You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2020/08/24 20:53:00 UTC

[jira] [Reopened] (HBASE-24898) Use EnvironmentEdge.currentTime() instead of System.currentTimeMillis() in CurrentHourProvider

     [ https://issues.apache.org/jira/browse/HBASE-24898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Kyle Purtell reopened HBASE-24898:
-----------------------------------------

This test fails 100% of the time on branch-1 and the commit has been reverted. 

{noformat}
[INFO] Running org.apache.hadoop.hbase.regionserver.compactions.TestCurrentHourProvider
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.309 s <<< FAILURE! - in org.apache.hadoop.hbase.regionserver.compactions.TestCurrentHourProvider
[ERROR] testWithEnvironmentEdge(org.apache.hadoop.hbase.regionserver.compactions.TestCurrentHourProvider)  Time elapsed: 0.175 s  <<< FAILURE!
java.lang.AssertionError: expected:<11> but was:<12>
	at org.apache.hadoop.hbase.regionserver.compactions.TestCurrentHourProvider.testWithEnvironmentEdge(TestCurrentHourProvider.java:53)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   TestCurrentHourProvider.testWithEnvironmentEdge:53 expected:<11> but was:<12>
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
{noformat}

It also fails 100% of the time for me on branch-2.3 and probably should be reverted elsewhere as well. 

> Use EnvironmentEdge.currentTime() instead of System.currentTimeMillis() in CurrentHourProvider
> ----------------------------------------------------------------------------------------------
>
>                 Key: HBASE-24898
>                 URL: https://issues.apache.org/jira/browse/HBASE-24898
>             Project: HBase
>          Issue Type: Bug
>          Components: tooling
>            Reporter: Zheng Wang
>            Assignee: Zheng Wang
>            Priority: Major
>             Fix For: 3.0.0-alpha-1, 1.7.0, 2.4.0, 2.2.7, 2.3.2
>
>
> In order to control the return value of getCurrentHour used by unit test.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)