} else if (resource.getName().equals(Constants.MESOS_RESOURCE_MEM)) {
offerMem += resource.getScalar().getValue();
} else {
}
}
<BUG>System.out.println("Received offer " + offer.getId().getValue() + " with cpus: " + offerCpu
+ " and mem: " + offerMem + "MB.");
Protos.ExecutorInfo.Builder executorBuilder = Protos.ExecutorInfo.newBuilder();</BUG>
List<Protos.Resource> resources;
if (!mMasterLaunched && offerCpu >= masterCpu && offerMem >= masterMem

} else if (resource.getName().equals(Constants.MESOS_RESOURCE_MEM)) {
offerMem += resource.getScalar().getValue();
} else {
}
}
LOG.info(String.format("Received offer %s with cpus %f and mem %f MB and hasMasterPorts %b",
offer.getId().getValue(), offerCpu, offerMem,
OfferUtils.hasAvailableMasterPorts(offer)));
Protos.ExecutorInfo.Builder executorBuilder = Protos.ExecutorInfo.newBuilder();
List<Protos.Resource> resources;
if (!mMasterLaunched && offerCpu >= masterCpu && offerMem >= masterMem
