-
Notifications
You must be signed in to change notification settings - Fork 971
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 panic issue with job taskMinAvailable clone #3008
Conversation
Welcome @Tongruizhe! |
/assign @qiankunli |
3b3d4f2
to
3d43545
Compare
/lgtm |
pkg/scheduler/api/job_info.go
Outdated
@@ -574,7 +574,7 @@ func (ji *JobInfo) Clone() *JobInfo { | |||
PodGroup: ji.PodGroup.Clone(), | |||
|
|||
TaskStatusIndex: map[TaskStatus]tasksMap{}, | |||
TaskMinAvailable: ji.TaskMinAvailable, | |||
TaskMinAvailable: map[TaskID]int32{}, |
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.
Thanks for your report and bug fix. It's OK for me. A small tip is that making use of make(map[TaskID]int32{})
instead of map directly maybe better. Anyway, it's not something matters.
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.
I've changed to make...
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.
A more graceful change is making map with cap ^_^.
da0f718
to
aa10936
Compare
Signed-off-by: Tongruizhe <[email protected]>
aa10936
to
bf0a7a6
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Thor-wl 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 |
Fix #3007