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
1504c7fc
Commit
1504c7fc
authored
Jun 02, 2017
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logging to debug conflicts in kubemark-scale test
parent
7043372d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
cacher.go
staging/src/k8s.io/apiserver/pkg/storage/cacher.go
+5
-0
time_budget.go
staging/src/k8s.io/apiserver/pkg/storage/time_budget.go
+1
-1
No files found.
staging/src/k8s.io/apiserver/pkg/storage/cacher.go
View file @
1504c7fc
...
@@ -639,6 +639,11 @@ func forgetWatcher(c *Cacher, index int, triggerValue string, triggerSupported b
...
@@ -639,6 +639,11 @@ func forgetWatcher(c *Cacher, index int, triggerValue string, triggerSupported b
if
lock
{
if
lock
{
c
.
Lock
()
c
.
Lock
()
defer
c
.
Unlock
()
defer
c
.
Unlock
()
}
else
{
// false is currently passed only if we are forcing watcher to close due
// to its unresponsiveness and blocking other watchers.
// TODO: Get this information in cleaner way.
glog
.
V
(
1
)
.
Infof
(
"Forcing watcher close due to unresponsiveness: %v"
,
c
.
objectType
.
String
())
}
}
// It's possible that the watcher is already not in the structure (e.g. in case of
// It's possible that the watcher is already not in the structure (e.g. in case of
// simulaneous Stop() and terminateAllWatchers(), but it doesn't break anything.
// simulaneous Stop() and terminateAllWatchers(), but it doesn't break anything.
...
...
staging/src/k8s.io/apiserver/pkg/storage/time_budget.go
View file @
1504c7fc
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
const
(
const
(
refreshPerSecond
=
50
*
time
.
Millisecond
refreshPerSecond
=
50
*
time
.
Millisecond
maxBudget
=
25
0
*
time
.
Millisecond
maxBudget
=
10
0
*
time
.
Millisecond
)
)
// timeBudget implements a budget of time that you can use and is
// timeBudget implements a budget of time that you can use and is
...
...
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