You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Dániel Bakai (Jira)" <ji...@apache.org> on 2020/04/09 14:17:00 UTC

[jira] [Updated] (MINIFICPP-839) Multiple memory leaks because of shared_ptr cycles

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

Dániel Bakai updated MINIFICPP-839:
-----------------------------------
    Fix Version/s:     (was: 0.8.0)
                   1.0.0

> Multiple memory leaks because of shared_ptr cycles
> --------------------------------------------------
>
>                 Key: MINIFICPP-839
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-839
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Dániel Bakai
>            Priority: Blocker
>              Labels: ReloadValidation
>             Fix For: 1.0.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> There seems to be a Connection<->Processor shared_ptr cycle which means that the Processors never get destructed.
> This causes leaks in reloads and in tests.
> There are also other cycles causing leaks:
>  * Connection <-> FlowFile (this seems to be partially mitigated by Connection::drain(), but not entirely)
>  * ResourceClaim <-> VolatileContentRepository
>  * VolatileContentRepository <-> VolatileContentRepository (capturing a shared_ptr into a thread func and detaching the thread)
>  * FlowController <- > SchedulingAgent (TimerDrivenSchedulingAgent, EventDrivenSchedulingAgent, CronDrivenSchedulingAgent) and even FlowController <- > util::ThreadPool because of this



--
This message was sent by Atlassian Jira
(v8.3.4#803005)