Skip to content

Commit

Permalink
Merge pull request #32079 from gmarek/load
Browse files Browse the repository at this point in the history
Add a log to help debug #31981
  • Loading branch information
gmarek committed Sep 5, 2016
2 parents ab0b937 + a82e542 commit 9767c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/controller/replication/replication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
if !reflect.DeepEqual(oldRC.Spec.Selector, curRC.Spec.Selector) {
rm.lookupCache.InvalidateAll()
}
// TODO: Remove when #31981 is resolved!
glog.Infof("Observed updated replication controller %v. Pod count change: %d->%d", curRC.Name, oldRC.Status.Replicas, curRC.Status.Replicas)

// You might imagine that we only really need to enqueue the
// controller when Spec changes, but it is safer to sync any
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,7 @@ func DeleteRCAndWaitForGC(c *client.Client, ns, name string) error {
if rc.Spec.Replicas < 5000 {
timeout = 10 * time.Minute
} else {
timeout = time.Duration(rc.Spec.Replicas / gcThroughput) * time.Second
timeout = time.Duration(rc.Spec.Replicas/gcThroughput) * time.Second
}
err = waitForPodsInactive(ps, interval, timeout)
if err != nil {
Expand Down

0 comments on commit 9767c26

Please sign in to comment.