mirror of https://github.com/apache/druid.git
fix autoscaling termination duration bug
This commit is contained in:
parent
a86d3af17e
commit
5d7173ac98
|
@ -200,7 +200,7 @@ public class SimpleResourceManagementStrategy implements ResourceManagementStrat
|
||||||
{
|
{
|
||||||
return input.getRunningTasks().isEmpty()
|
return input.getRunningTasks().isEmpty()
|
||||||
&& System.currentTimeMillis() - input.getLastCompletedTaskTime().getMillis()
|
&& System.currentTimeMillis() - input.getLastCompletedTaskTime().getMillis()
|
||||||
>= config.getWorkerIdleTimeout().getMillis();
|
>= config.getWorkerIdleTimeout().toStandardDuration().getMillis();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue