Skip to content

Commit

Permalink
Add logging to debug conflicts in kubemark-scale test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-t committed Jun 2, 2017
1 parent 7043372 commit 1504c7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions staging/src/k8s.io/apiserver/pkg/storage/cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,11 @@ func forgetWatcher(c *Cacher, index int, triggerValue string, triggerSupported b
if lock {
c.Lock()
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
// simulaneous Stop() and terminateAllWatchers(), but it doesn't break anything.
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/apiserver/pkg/storage/time_budget.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

const (
refreshPerSecond = 50 * time.Millisecond
maxBudget = 250 * time.Millisecond
maxBudget = 100 * time.Millisecond
)

// timeBudget implements a budget of time that you can use and is
Expand Down

0 comments on commit 1504c7f

Please sign in to comment.