Ádám Markovics created MINIFICPP-1812:
-----------------------------------------

             Summary: 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


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.7#820007)

Reply via email to