Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ead3cc8c
Commit
ead3cc8c
authored
Nov 23, 2016
by
Dawn Chen
Committed by
GitHub
Nov 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37293 from wojtek-t/fix_scheduler_bug
Fix a bug in scheduler happening after retrying unsuccessful bindings
parents
de03fadc
e4d215d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
scheduler.go
plugin/pkg/scheduler/scheduler.go
+7
-0
No files found.
plugin/pkg/scheduler/scheduler.go
View file @
ead3cc8c
...
@@ -114,6 +114,13 @@ func (s *Scheduler) scheduleOne() {
...
@@ -114,6 +114,13 @@ func (s *Scheduler) scheduleOne() {
assumed
.
Spec
.
NodeName
=
dest
assumed
.
Spec
.
NodeName
=
dest
if
err
:=
s
.
config
.
SchedulerCache
.
AssumePod
(
&
assumed
);
err
!=
nil
{
if
err
:=
s
.
config
.
SchedulerCache
.
AssumePod
(
&
assumed
);
err
!=
nil
{
glog
.
Errorf
(
"scheduler cache AssumePod failed: %v"
,
err
)
glog
.
Errorf
(
"scheduler cache AssumePod failed: %v"
,
err
)
// TODO: This means that a given pod is already in cache (which means it
// is either assumed or already added). This is most probably result of a
// BUG in retrying logic. As a temporary workaround (which doesn't fully
// fix the problem, but should reduce its impact), we simply return here,
// as binding doesn't make sense anyway.
// This should be fixed properly though.
return
}
}
go
func
()
{
go
func
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment