mirror of
https://github.com/apache/nifi.git
synced 2025-02-25 21:18:26 +00:00
Rather than creating many FlowFiles with the same Content Claim, refactored content repos' OutputStreams and ClaimWriteCache so that a new ContentClaim is created for each FlowFile. This ensures that we have a content claim offset of 0. The poor performance was due to having to use StreamUtils.skip() in conjunction with the CipherInputStream, which would only skip a max of 511 bytes at a time. By using a separate Content Claim per FlowFile, we no longer need to seek after creating the CipherInputStream This closes #7363 Signed-off-by: David Handermann <exceptionfactory@apache.org> (cherry picked from commit 702c6350344e4ae4cd31349747e96c1384017ed4)