NIFI-3971: This closes #1854. Fixed bug in calculating content size that was transferred when cloning a relationship

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Mark Payne 2017-05-24 15:31:33 -04:00 committed by joewitt
parent 5aa3baca79
commit eaefec6d81
1 changed files with 2 additions and 2 deletions

View File

@ -1883,12 +1883,12 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
record.setTransferRelationship(relationship);
updateLastQueuedDate(record);
contentSize += flowFile.getSize() * multiplier;
contentSize += flowFile.getSize();
}
if (autoTerminated) {
removedCount += multiplier * flowFiles.size();
removedBytes += contentSize;
removedBytes += multiplier * contentSize;
} else if (!selfRelationship) {
flowFilesOut += multiplier * flowFiles.size();
contentSizeOut += multiplier * contentSize;