This commit is contained in:
fjy 2014-09-30 11:45:19 -07:00
parent 575d51b0ce
commit b1b9e0a267
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class FillCapacityWorkerSelectStrategy implements WorkerSelectStrategy
for (ImmutableZkWorker zkWorker : sortedWorkers) {
if (zkWorker.canRunTask(task) && zkWorker.isValidVersion(minWorkerVer)) {
return Optional.of(zkWorker.getMutableZkWorker());
return Optional.of(zkWorker);
}
}
log.debug("Worker nodes %s do not have capacity to run any more tasks!", zkWorkers.values());