[
https://issues.apache.org/jira/browse/NIFI-7683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166630#comment-17166630
]
ASF subversion and git services commented on NIFI-7683:
-------------------------------------------------------
Commit e926a179689a777f81823225b2366415b48e0475 in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e926a17 ]
NIFI-7683: Fixed bug that resulted in a byte[] being allocated and held onto by
a member variable that was unprotected. This caused the byte array to be
modified by two different threads concurrently, which can potentially cause
corruption of FlowFile's data
Signed-off-by: Matthew Burgess <[email protected]>
This closes #4439
> ReplaceText with multiple concurrency tasks can result in data corruption
> -------------------------------------------------------------------------
>
> Key: NIFI-7683
> URL: https://issues.apache.org/jira/browse/NIFI-7683
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.12.0, 1.11.4
> Reporter: Mark Payne
> Priority: Blocker
> Fix For: 1.12.0
>
>
> ReplaceText, when scheduled to run with multiple Concurrent Tasks, and using
> a Replacement Strategy of "Regular Expression" or "Literal Replace" can
> result in content being corrupted by sharing a single buffer (byte[]) between
> threads.
> The issue is far more likely to occur with multiple Concurrent Tasks, but it
> may be possible to trigger when using a single Concurrent Task.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)