[
https://issues.apache.org/jira/browse/NIFI-11232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694669#comment-17694669
]
Joe Witt commented on NIFI-11232:
---------------------------------
[~cwahl] Can you share an example that exposes it by chance? The PR you
mentioned you'd provide might well be enough for it to be obvious but a test
that reproduces would be awesome.
> FlowFileAccessException using ContentClaimInputStream
> -----------------------------------------------------
>
> Key: NIFI-11232
> URL: https://issues.apache.org/jira/browse/NIFI-11232
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.20.0
> Reporter: Christian Wahl
> Priority: Major
>
> NIFI-10888 introduced a BufferedInputStream inside of the
> ContentClaimInputStream to speed up rewinding in small flow files (<1MB).
> Under some circumstances it can happen in reset that the delegate stream is
> closed and a new delegate stream is created, but the bufferedIn is not
> recreated with the new delegate.
> During the next read this leads to a situation where it tries to read from
> bufferedIn and bufferedIn in turn tries to read from the old and closed
> delegate stream causing an IOException or FlowFileAccessException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)