mirror of https://github.com/apache/druid.git
Merge pull request #2379 from metamx/fix2378
Allow ScalingStats to be null
This commit is contained in:
commit
13ff87fd12
|
@ -351,7 +351,7 @@ public class RemoteTaskRunner implements TaskRunner, TaskLogStreamer
|
|||
@Override
|
||||
public Optional<ScalingStats> getScalingStats()
|
||||
{
|
||||
return Optional.of(resourceManagement.getStats());
|
||||
return Optional.fromNullable(resourceManagement.getStats());
|
||||
}
|
||||
|
||||
public ZkWorker findWorkerRunningTask(String taskId)
|
||||
|
|
Loading…
Reference in New Issue