Skip to content

Reproduction of goroutine leak in apimachinery's PollUntil

Notifications You must be signed in to change notification settings

shomron/poll-leak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The purpose of this repository is to reproduce the goroutine leak found in wait.PollUntil, as exercised through typical use of a SharedInformer.

Build

dep ensure
go run main.go

You should see the number of goroutines monotonically increase as we continue to call WaitForCacheSync(). This is because there is an implicit requirement for the caller to close the stopCh passed to WaitForCacheSync, even upon successful completion.

About

Reproduction of goroutine leak in apimachinery's PollUntil

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages