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:10:55 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 e8063d4f1 -> 1cb82d911


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/1cb82d91
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1cb82d91
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1cb82d91

Branch: refs/heads/branch-1
Commit: 1cb82d91189606af0e07fd05955dde830439b509
Parents: e8063d4
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Mar 14 07:10:34 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Mar 14 07:10:34 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/1cb82d91/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 dd98d26..2c54b9f 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