hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-15439 getMaximumAllowedTimeBetweenRuns in ScheduledChore ignores the TimeUnit (Jingcheng Du)
Date Mon, 14 Mar 2016 14:12:48 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 6b1d2af71 -> 2a468d652


HBASE-15439 getMaximumAllowedTimeBetweenRuns in ScheduledChore ignores the TimeUnit (Jingcheng
Du)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2a468d65
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2a468d65
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2a468d65

Branch: refs/heads/branch-1.1
Commit: 2a468d6525ff0076fe848d064598463ee623fe7a
Parents: 6b1d2af
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Mar 14 07:12:36 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Mar 14 07:12:36 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/ScheduledChore.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2a468d65/hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java
index 3b0b3f7..6f49342 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java
@@ -230,7 +230,7 @@ public abstract class ScheduledChore implements Runnable {
 
   private double getMaximumAllowedTimeBetweenRuns() {
     // Threshold used to determine if the Chore's current run started too late
-    return 1.5 * period;
+    return 1.5 * timeUnit.toMillis(period);
   }
 
   private synchronized boolean isValidTime(final long time) {


Mime
View raw message