Fix hostname check logic in scheduler
This commit is contained in:
parent
7adb463dd0
commit
39942952cd
@ -397,7 +397,7 @@ func (k *KubernetesScheduler) StatusUpdate(driver bindings.SchedulerDriver, task
|
|||||||
} // else, we don't really care about FINISHED tasks that aren't registered
|
} // else, we don't really care about FINISHED tasks that aren't registered
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if hostName := k.slaveHostNames.HostName(taskStatus.GetSlaveId().GetValue()); hostName != "" {
|
if hostName := k.slaveHostNames.HostName(taskStatus.GetSlaveId().GetValue()); hostName == "" {
|
||||||
// a registered task has an update reported by a slave that we don't recognize.
|
// a registered task has an update reported by a slave that we don't recognize.
|
||||||
// this should never happen! So we don't reconcile it.
|
// this should never happen! So we don't reconcile it.
|
||||||
log.Errorf("Ignore status %+v because the slave does not exist", taskStatus)
|
log.Errorf("Ignore status %+v because the slave does not exist", taskStatus)
|
||||||
|
Loading…
Reference in New Issue
Block a user