You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Customers report that memory usage of TiKV-CDC keep increasing along with time, which using BatchPut interface to write data to downstream TiKV cluster.
This issue seem to be caused by context leak of BatchPut interface.
This following codes can reproduce this issue on master of client-go:
Customers report that memory usage of TiKV-CDC keep increasing along with time, which using
BatchPut
interface to write data to downstream TiKV cluster.This issue seem to be caused by context leak of
BatchPut
interface.This following codes can reproduce this issue on master of
client-go
:Memory usage of this program increased from hundreds of MBs to several GBs in minutes.
Top 3 of
pprof
inuse heap memory:Callgraph of inuse heap memory size:
Callgraph of inuse heap objects count:
This issue seems to be caused by the leak of context here. When there is not error, the
cancel()
will not be called, and thectx
inbo
is leak.The text was updated successfully, but these errors were encountered: