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
418a1d30
Commit
418a1d30
authored
Oct 17, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Oct 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34935 from wojtek-t/addtional_tracing_step
Automatic merge from submit-queue Extend tracing in watchCache
parents
fce3b953
6d06a384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
watch_cache.go
pkg/storage/watch_cache.go
+4
-1
No files found.
pkg/storage/watch_cache.go
View file @
418a1d30
...
@@ -223,6 +223,9 @@ func (w *watchCache) WaitUntilFreshAndList(resourceVersion uint64, trace *util.T
...
@@ -223,6 +223,9 @@ func (w *watchCache) WaitUntilFreshAndList(resourceVersion uint64, trace *util.T
w
.
RLock
()
w
.
RLock
()
defer
w
.
RUnlock
()
defer
w
.
RUnlock
()
if
trace
!=
nil
{
trace
.
Step
(
"watchCache locked acquired"
)
}
for
w
.
resourceVersion
<
resourceVersion
{
for
w
.
resourceVersion
<
resourceVersion
{
if
w
.
clock
.
Since
(
startTime
)
>=
MaximumListWait
{
if
w
.
clock
.
Since
(
startTime
)
>=
MaximumListWait
{
return
nil
,
0
,
fmt
.
Errorf
(
"time limit exceeded while waiting for resource version %v (current value: %v)"
,
resourceVersion
,
w
.
resourceVersion
)
return
nil
,
0
,
fmt
.
Errorf
(
"time limit exceeded while waiting for resource version %v (current value: %v)"
,
resourceVersion
,
w
.
resourceVersion
)
...
@@ -230,7 +233,7 @@ func (w *watchCache) WaitUntilFreshAndList(resourceVersion uint64, trace *util.T
...
@@ -230,7 +233,7 @@ func (w *watchCache) WaitUntilFreshAndList(resourceVersion uint64, trace *util.T
w
.
cond
.
Wait
()
w
.
cond
.
Wait
()
}
}
if
trace
!=
nil
{
if
trace
!=
nil
{
trace
.
Step
(
"
Cache is
fresh enough"
)
trace
.
Step
(
"
watchCache
fresh enough"
)
}
}
return
w
.
store
.
List
(),
w
.
resourceVersion
,
nil
return
w
.
store
.
List
(),
w
.
resourceVersion
,
nil
}
}
...
...
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