[ 
https://issues.apache.org/jira/browse/CASSANALYTICS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jyothsna Konisa updated CASSANALYTICS-142:
------------------------------------------
    Status: Ready to Commit  (was: Review In Progress)

> 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
>          Components: CDC
>            Reporter: Jyothsna Konisa
>            Assignee: Jyothsna Konisa
>            Priority: Normal
>             Fix For: 0.4
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to