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

Ádám Markovics resolved MINIFICPP-1812.
---------------------------------------
    Resolution: Fixed

> Clean up Repository threads
> ---------------------------
>
>                 Key: MINIFICPP-1812
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1812
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Ádám Markovics
>            Assignee: Ádám Markovics
>            Priority: Minor
>          Time Spent: 5h 20m
>  Remaining Estimate: 0h
>
> Thread in Repository, with FlowFileRepository being derived from it, and 
> FlowFileRepository::run() is assigned to the thread, that is using derived 
> members. When destructing the derived class, members are deleted before 
> thread is stopped by the destructor of the base class, that is called later. 
> Between the two, the running thread can cause segfault. Currently we need to 
> stop the thread explicitly in each derived class destructor. But this is 
> error-prone, since it can be forgotten and overlooked.
> Must be taken care of in all the subclasses of Repository.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to