mirror of https://github.com/apache/nifi.git
NIFI-1650: Ensure that proper size and offset are specified for Content Claim when viewing FlowFiles still in queue
This commit is contained in:
parent
d3578a7c03
commit
38c782c30b
|
@ -520,9 +520,9 @@ public final class DtoFactory {
|
|||
dto.setContentClaimSection(resourceClaim.getSection());
|
||||
dto.setContentClaimContainer(resourceClaim.getContainer());
|
||||
dto.setContentClaimIdentifier(resourceClaim.getId());
|
||||
dto.setContentClaimOffset(contentClaim.getOffset());
|
||||
dto.setContentClaimFileSizeBytes(contentClaim.getLength());
|
||||
dto.setContentClaimFileSize(FormatUtils.formatDataSize(contentClaim.getLength()));
|
||||
dto.setContentClaimOffset(contentClaim.getOffset() + record.getContentClaimOffset());
|
||||
dto.setContentClaimFileSizeBytes(record.getSize());
|
||||
dto.setContentClaimFileSize(FormatUtils.formatDataSize(record.getSize()));
|
||||
}
|
||||
|
||||
return dto;
|
||||
|
|
Loading…
Reference in New Issue