Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback in case ToxicDelete stuck #427

Open
miry opened this issue Sep 2, 2022 · 0 comments
Open

Fallback in case ToxicDelete stuck #427

miry opened this issue Sep 2, 2022 · 0 comments

Comments

@miry
Copy link
Contributor

miry commented Sep 2, 2022

Sometime happens that Toxiproxy stuck on ToxicDelete.
Currently it is waiting for Delete for all links.

sync.(*WaitGroup).Wait(0x40001fe0f0)
	/opt/hostedtoolcache/go/1.17.7/x64/src/sync/waitgroup.go:130 +0xa4

github.com/Shopify/toxiproxy/v2.(*ToxicCollection).chainRemoveToxic(0x40000a1440, 0x400027ad80)
	/home/runner/work/toxiproxy/toxiproxy/toxic_collection.go:266 +0x2cc

github.com/Shopify/toxiproxy/v2.(*ToxicCollection).RemoveToxic(0x40000a1440, {0x40000a229f, 0x12})
	/home/runner/work/toxiproxy/toxiproxy/toxic_collection.go:169 +0xdc

github.com/Shopify/toxiproxy/v2.(*ApiServer).ToxicDelete(0x4000028150, {0x5041c0, 0x40001ca0e0}, 0x4000184c00)
	/home/runner/work/toxiproxy/toxiproxy/api.go:379 +0x10c

net/http.HandlerFunc.ServeHTTP(0x4000028a10, {0x5041c0, 0x40001ca0e0}, 0x4000184c00)
	/opt/hostedtoolcache/go/1.17.7/x64/src/net/http/server.go:2047 +0x40

Need to find solution to unblock removing WaitGroup with removing stucked Link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant