kv client v2 EventFeed RPC leaks #2284
Labels
area/ticdc
Issues or PRs related to TiCDC.
component/kv-client
TiKV kv log client component.
difficulty/hard
Hard task.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
Replicating 6k tables using the commit d2c1aae, we find EventFeed rpc and its goroutine leaks.
From metrics we find, the leakage relates to eventfeed errors.
Based on pprof/trace, we find leaked goroutines are spawned at
https://github.com/pingcap/ticdc/blob/d2c1aaeb81561827cb67ceb6cd51cacc705e702a/cdc/kv/client.go#L855-L860
https://github.com/pingcap/ticdc/blob/d2c1aaeb81561827cb67ceb6cd51cacc705e702a/cdc/kv/region_worker.go#L546-L551
No leakage.
Leakage.
A fork of v5.1.0 d2c1aae
The text was updated successfully, but these errors were encountered: