mirror of https://github.com/apache/druid.git
Fix getResourceManagementScheduler for non-autoscaling configs
This commit is contained in:
parent
25e330780c
commit
b102d67173
|
@ -268,7 +268,7 @@ public class TaskMasterLifecycle
|
|||
public Optional<ResourceManagementScheduler> getResourceManagementScheduler()
|
||||
{
|
||||
if (leading) {
|
||||
return Optional.of(resourceManagementScheduler);
|
||||
return Optional.fromNullable(resourceManagementScheduler);
|
||||
} else {
|
||||
return Optional.absent();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue