-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix downstream bug in IL #283
Conversation
bug: after deleting dataset, the event of deleting job can not be sent to LC. Signed-off-by: JimmyYang20 <yangjin39@huawei.com>
/lgtm |
ds, err := c.client.Datasets(job.Namespace).Get(context.TODO(), dataName, metav1.GetOptions{}) | ||
if err != nil { | ||
return fmt.Errorf("dataset(%s/%s) not found", job.Namespace, dataName) | ||
klog.Errorf("not found job(name=%s/%s)'s dataset, error: %v", job.Kind, job.Name, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no return here, maybe dsNodeName will be empty in the function below:
if eventType == watch.Deleted {
// delete jobs from all LCs
nodes := sets.NewString(dsNodeName, trainNodeName, evalNodeName, deployNodeName)
for node := range nodes {
c.sendToEdgeFunc(node, eventType, job)
}
return nil
}
dsNodeName
in sets.NewString(dsNodeName, trainNodeName, evalNodeName, deployNodeName)
maybe an empty string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the func sendToEdgeFunc
will handle the case where the node is empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jaypume The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bug: after deleting dataset, the event of deleting job can be sent to LC.
Signed-off-by: JimmyYang20 yangjin39@huawei.com