HBASE-15439 getMaximumAllowedTimeBetweenRuns in ScheduledChore ignores the TimeUnit (Jingcheng Du)
This commit is contained in:
parent
88ca84f685
commit
122e6f5793
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue