You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/12 15:48:00 UTC

[jira] [Commented] (NIFI-7994) ReplaceText concurrency issue

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

ASF subversion and git services commented on NIFI-7994:
-------------------------------------------------------

Commit 018778a25d34eea243a3407d79c57d76f92155c8 in nifi's branch refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=018778a ]

NIFI-7994: Fixed ReplaceText concurrency issue

Moving RegexReplace.additionalAttrs field to local variable in replace() method.
Concurrent usage of the additionalAttrs map caused data corruption.


> ReplaceText concurrency issue
> -----------------------------
>
>                 Key: NIFI-7994
>                 URL: https://issues.apache.org/jira/browse/NIFI-7994
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Peter Turcsanyi
>            Assignee: Peter Turcsanyi
>            Priority: Critical
>             Fix For: 1.13.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> ReplaceText, when scheduled to run with multiple Concurrent Tasks, can result in corrupted data due to the concurrent / unprotected usage of {{additionalAttrs}} map (storing the capturing groups with their current matches) in {{RegexReplace}} class (https://github.com/apache/nifi/blob/badcfe1ab7b7166decb92a0d427ba48fbf613400/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ReplaceText.java#L497).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)