Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 6038625

Browse files
TommyLikeasifdxtreme
authored andcommitted
Fix Typos
1 parent 3a1f9d7 commit 6038625

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

pkg/scheduler/actions/reclaim/reclaim.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (alloc *reclaimAction) Execute(ssn *framework.Session) {
176176

177177
if task.Resreq.LessEqual(reclaimed) {
178178
if err := ssn.Pipeline(task, n.Name); err != nil {
179-
glog.Errorf("Failed to pipline Task <%s/%s> on Node <%s>",
179+
glog.Errorf("Failed to pipeline Task <%s/%s> on Node <%s>",
180180
task.Namespace, task.Name, n.Name)
181181
}
182182

pkg/scheduler/api/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func MergeErrors(errs ...error) error {
9696
return nil
9797
}
9898

99-
// JobTerminated checkes whether job was terminated.
99+
// JobTerminated checks whether job was terminated.
100100
func JobTerminated(job *JobInfo) bool {
101101
return job.PodGroup == nil &&
102102
job.PDB == nil &&

pkg/scheduler/api/job_info.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ type JobInfo struct {
141141
CreationTimestamp metav1.Time
142142
PodGroup *v1alpha1.PodGroup
143143

144-
// TODO(k82cn): keep backward compatbility, removed it when v1alpha1 finalized.
144+
// TODO(k82cn): keep backward compatibility, removed it when v1alpha1 finalized.
145145
PDB *policyv1.PodDisruptionBudget
146146
}
147147

pkg/scheduler/cache/event_handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func (sc *SchedulerCache) setPodGroup(ss *kbv1.PodGroup) error {
363363
job := getJobID(ss)
364364

365365
if len(job) == 0 {
366-
return fmt.Errorf("the controller of PodGroup is empty")
366+
return fmt.Errorf("the identity of PodGroup is empty")
367367
}
368368

369369
if _, found := sc.Jobs[job]; !found {

pkg/scheduler/plugins/drf/drf.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ func (drf *drfPlugin) OnSessionOpen(ssn *framework.Session) {
110110
lv := l.(*api.JobInfo)
111111
rv := r.(*api.JobInfo)
112112

113-
glog.V(4).Infof("DRF JobOrderFn: <%v/%v> is ready: %d, <%v/%v> is ready: %d",
114-
lv.Namespace, lv.Name, lv.Priority, rv.Namespace, rv.Name, rv.Priority)
113+
glog.V(4).Infof("DRF JobOrderFn: <%v/%v> share state: %d, <%v/%v> share state: %d",
114+
lv.Namespace, lv.Name, drf.jobOpts[lv.UID].share, rv.Namespace, rv.Name, drf.jobOpts[rv.UID].share)
115115

116116
if drf.jobOpts[lv.UID].share == drf.jobOpts[rv.UID].share {
117117
return 0

pkg/scheduler/plugins/predicates/predicates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ func (pp *predicatesPlugin) OnSessionOpen(ssn *framework.Session) {
123123
nodeInfo.SetNode(node.Node)
124124

125125
if node.Allocatable.MaxTaskNum <= len(nodeInfo.Pods()) {
126-
return fmt.Errorf("Node <%s> can not allow more task running on it.", node.Name)
126+
return fmt.Errorf("node <%s> can not allow more task running on it", node.Name)
127127
}
128128

129-
// NodeSeletor Predicate
129+
// NodeSelector Predicate
130130
fit, _, err := predicates.PodMatchNodeSelector(task.Pod, nil, nodeInfo)
131131
if err != nil {
132132
return err

pkg/scheduler/plugins/priority/priority.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (pp *priorityPlugin) OnSessionOpen(ssn *framework.Session) {
3838
lv := l.(*api.TaskInfo)
3939
rv := r.(*api.TaskInfo)
4040

41-
glog.V(4).Infof("Priority TaskOrder: <%v/%v> prority is %v, <%v/%v> priority is %v",
41+
glog.V(4).Infof("Priority TaskOrder: <%v/%v> priority is %v, <%v/%v> priority is %v",
4242
lv.Namespace, lv.Name, lv.Priority, rv.Namespace, rv.Name, rv.Priority)
4343

4444
if lv.Priority == rv.Priority {
@@ -59,7 +59,7 @@ func (pp *priorityPlugin) OnSessionOpen(ssn *framework.Session) {
5959
lv := l.(*api.JobInfo)
6060
rv := r.(*api.JobInfo)
6161

62-
glog.V(4).Infof("Priority JobOrderFn: <%v/%v> is ready: %d, <%v/%v> is ready: %d",
62+
glog.V(4).Infof("Priority JobOrderFn: <%v/%v> priority: %d, <%v/%v> priority: %d",
6363
lv.Namespace, lv.Name, lv.Priority, rv.Namespace, rv.Name, rv.Priority)
6464

6565
if lv.Priority > rv.Priority {

pkg/scheduler/plugins/proportion/proportion.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (pp *proportionPlugin) OnSessionOpen(ssn *framework.Session) {
166166
}
167167
allocated := allocations[job.Queue]
168168
if allocated.Less(reclaimee.Resreq) {
169-
glog.Errorf("Failed to calculate the allocation of Task <%s/%s> in Queue <%s>.",
169+
glog.Errorf("Failed to allocate resource for Task <%s/%s> in Queue <%s>, not enough resource.",
170170
reclaimee.Namespace, reclaimee.Name, job.Queue)
171171
continue
172172
}
@@ -226,7 +226,7 @@ func (pp *proportionPlugin) OnSessionClose(ssn *framework.Session) {
226226
func (pp *proportionPlugin) updateShare(attr *queueAttr) {
227227
res := float64(0)
228228

229-
// TODO(k82cn): how to handle fragement issues?
229+
// TODO(k82cn): how to handle fragment issues?
230230
for _, rn := range api.ResourceNames() {
231231
share := helpers.Share(attr.allocated.Get(rn), attr.deserved.Get(rn))
232232
if share > res {

0 commit comments

Comments
 (0)