From 1cb82d91189606af0e07fd05955dde830439b509 Mon Sep 17 00:00:00 2001 From: tedyu Date: Mon, 14 Mar 2016 07:10:34 -0700 Subject: [PATCH] HBASE-15439 getMaximumAllowedTimeBetweenRuns in ScheduledChore ignores the TimeUnit (Jingcheng Du) --- .../src/main/java/org/apache/hadoop/hbase/ScheduledChore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 dd98d26565b..2c54b9fb5d2 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) {