TaskInfo.Builder taskBuilder = TaskInfo.newBuilder();
taskBuilder
.setName(brokerName)
.setTaskId(TaskID.newBuilder().setValue("").build()) // Set later by TaskRequirement
.setSlaveId(SlaveID.newBuilder().setValue("").build()) // Set later
<BUG>.setData(brokerTaskBuilder.build().toByteString())
.addResources(ResourceUtils.getDesiredScalar(role, principal, "cpus", brokerConfig.getCpus()))</BUG>
.addResources(ResourceUtils.getDesiredScalar(role, principal, "mem", brokerConfig.getMem()))
.addResources(ResourceUtils.getDesiredRanges(
role,

TaskInfo.Builder taskBuilder = TaskInfo.newBuilder();
taskBuilder
.setName(brokerName)
.setTaskId(TaskID.newBuilder().setValue("").build()) // Set later by TaskRequirement
.setSlaveId(SlaveID.newBuilder().setValue("").build()) // Set later
.setData(brokerTask.toByteString())
.addResources(ResourceUtils.getDesiredScalar(role, principal, "cpus", brokerConfig.getCpus()))
.addResources(ResourceUtils.getDesiredScalar(role, principal, "mem", brokerConfig.getMem()))
.addResources(ResourceUtils.getDesiredRanges(
role,
