You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "marco polo (JIRA)" <ji...@apache.org> on 2017/03/17 18:32:41 UTC

[jira] [Comment Edited] (MINIFI-234) Flow Controller getFlowController singleton pattern isn't thread safe

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

marco polo edited comment on MINIFI-234 at 3/17/17 6:31 PM:
------------------------------------------------------------

Part of PR 63


was (Author: phrocker):
Part of 63

> 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)