Skip to content

Commit

Permalink
[hotfix] Start MesosWorkers with default ContaineredTaskManagerConfig…
Browse files Browse the repository at this point in the history
…uration

(cherry picked from commit e663990)
  • Loading branch information
tillrohrmann authored and Clarkkkkk committed Jan 28, 2019
1 parent 2280028 commit b85af31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void recoverWorkers(final List<MesosWorkerStore.Worker> tasksFromPreviou
switch(worker.state()) {
case Launched:
workersInLaunch.put(extractResourceID(worker.taskID()), worker);
final LaunchableMesosWorker launchable = createLaunchableMesosWorker(worker.taskID(), worker.profile());
final LaunchableMesosWorker launchable = createLaunchableMesosWorker(worker.taskID());
toAssign.add(new Tuple2<>(launchable.taskRequest(), worker.hostname().get()));
break;
case Released:
Expand Down Expand Up @@ -439,7 +439,7 @@ public Collection<ResourceProfile> startNewWorker(ResourceProfile resourceProfil
workerStore.putWorker(worker);
workersInNew.put(extractResourceID(worker.taskID()), worker);

LaunchableMesosWorker launchable = createLaunchableMesosWorker(worker.taskID(), resourceProfile);
LaunchableMesosWorker launchable = createLaunchableMesosWorker(worker.taskID());

LOG.info("Scheduling Mesos task {} with ({} MB, {} cpus).",
launchable.taskID().getValue(), launchable.taskRequest().getMemory(), launchable.taskRequest().getCPUs());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static class Context implements AutoCloseable {
TestingMesosResourceManager resourceManager;

// domain objects for test purposes
final ResourceProfile resourceProfile1 = new ResourceProfile(1.0, 1);
final ResourceProfile resourceProfile1 = ResourceProfile.UNKNOWN;

Protos.FrameworkID framework1 = Protos.FrameworkID.newBuilder().setValue("framework1").build();
public Protos.SlaveID slave1 = Protos.SlaveID.newBuilder().setValue("slave1").build();
Expand Down

0 comments on commit b85af31

Please sign in to comment.