Gábor Gyimesi created MINIFICPP-2771:
----------------------------------------

             Summary: Concurrent triggers of processors crash using state 
manager
                 Key: MINIFICPP-2771
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2771
             Project: Apache NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Gábor Gyimesi
            Assignee: Gábor Gyimesi


With the change of creating separate context for each thread of a processor in 
https://issues.apache.org/jira/browse/MINIFICPP-2693 we introduced a bug using 
the state manager. The usual practice is to create a state manager in the 
onSchedule method and store that for later use in onTrigger. With the 
introduction of creating separate ProcessContexts for scheduling and each 
trigger thread the state manager created in onSchedule is not available in 
onTrigger, it is just a dangling pointer which causes the crash.



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

Reply via email to