Skip to content

Commit 402072d

Browse files
committed
print stack on stop
1 parent 767dc19 commit 402072d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package cacher
1919
import (
2020
"context"
2121
"fmt"
22+
"os"
23+
"runtime/debug"
2224
"sync"
2325
"time"
2426

@@ -119,6 +121,9 @@ func (c *cacheWatcher) ResultChan() <-chan watch.Event {
119121

120122
// Implements watch.Interface.
121123
func (c *cacheWatcher) Stop() {
124+
fmt.Fprintf(os.Stderr, "#### 6a groupResource=%v stop stack next\n", c.groupResource)
125+
debug.PrintStack()
126+
fmt.Fprintf(os.Stderr, "#### 6b groupResource=%v \n", c.groupResource)
122127
c.forget(false)
123128
}
124129

0 commit comments

Comments
 (0)