[ 
https://issues.apache.org/jira/browse/MINIFI-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15926739#comment-15926739
 ] 

marco polo commented on MINIFI-234:
-----------------------------------

Updated change so that FlowControllerFactory isn't needed. A singleton pattern 
doesn't provide us much here.

> Flow Controller getFlowController singleton pattern isn't thread safe
> ---------------------------------------------------------------------
>
>                 Key: MINIFI-234
>                 URL: https://issues.apache.org/jira/browse/MINIFI-234
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: C++
>            Reporter: marco polo
>            Assignee: marco polo
>            Priority: Critical
>
> This was exposed in testing. When I moved code to FlowControllerFactory I 
> noticed that there was no synchronization to prevent issues. The typical 
> setup doesn't necessarily cause this but if exposed as an API or in testing, 
> this will cause major issues. Testing demonstrates this problem with 
> concurrent tests run by CATCH



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to