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
fcd01218
Commit
fcd01218
authored
Mar 05, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22582 from piosz/scheduler-log-fix
Auto commit by PR queue bot
parents
28089735
33cc3c76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
factory.go
plugin/pkg/scheduler/factory/factory.go
+2
-2
No files found.
plugin/pkg/scheduler/factory/factory.go
View file @
fcd01218
...
@@ -444,7 +444,7 @@ func (b *backoffEntry) tryLock() bool {
...
@@ -444,7 +444,7 @@ func (b *backoffEntry) tryLock() bool {
// unlock returns the lock. panics if the lock isn't held
// unlock returns the lock. panics if the lock isn't held
func
(
b
*
backoffEntry
)
unlock
()
{
func
(
b
*
backoffEntry
)
unlock
()
{
if
!
atomic
.
CompareAndSwapInt32
(
&
b
.
reqInFlight
,
1
,
0
)
{
if
!
atomic
.
CompareAndSwapInt32
(
&
b
.
reqInFlight
,
1
,
0
)
{
panic
(
fmt
.
Sprintf
(
"unexpected state on unlocking: %v"
,
b
))
panic
(
fmt
.
Sprintf
(
"unexpected state on unlocking: %
+
v"
,
b
))
}
}
}
}
...
@@ -465,7 +465,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration {
...
@@ -465,7 +465,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration {
newDuration
=
maxDuration
newDuration
=
maxDuration
}
}
entry
.
backoff
=
newDuration
entry
.
backoff
=
newDuration
glog
.
V
(
4
)
.
Infof
(
"Backing off %s for pod %v"
,
duration
.
String
(),
entry
)
glog
.
V
(
4
)
.
Infof
(
"Backing off %s for pod %
+
v"
,
duration
.
String
(),
entry
)
return
duration
return
duration
}
}
...
...
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