You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jyothsna Konisa (Jira)" <ji...@apache.org> on 2026/03/30 21:18:00 UTC
[jira] [Created] (CASSANALYTICS-142) SidecarCdcClient should be passed as a constructor parameter for SidecarCdc to avoid thread/resource leaks
Jyothsna Konisa created CASSANALYTICS-142:
---------------------------------------------
Summary: SidecarCdcClient should be passed as a constructor parameter for SidecarCdc to avoid thread/resource leaks
Key: CASSANALYTICS-142
URL: https://issues.apache.org/jira/browse/CASSANALYTICS-142
Project: Apache Cassandra Analytics
Issue Type: Bug
Reporter: Jyothsna Konisa
Identified a thread/resource leaks in CDC code path
1. SidecarCdcClient object is being created for each token range inside sidecar. This object holds a reference to vertx object which is never closed. During failures, new SidecarCdcClient objects are created on each retry causing resource leaks.
2.SidecarCdcClient is not autoclosable, hence SidecarClient object reference by SidecarCdcClient is never closed.
3. StatePersister class is started but close is never called in sidecar
We should have a singleton SidecarCdcClient, adding a constructor parameter in SidecarCdc to be able to pass singleton SidecarCdcClient created in sidecar. Also making the SidecarCdcClient auto closable to be closed from sidecar while managing the lifecycle.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org