[ https://issues.apache.org/jira/browse/OAK-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Mari updated OAK-3965: -------------------------------- Attachment: OAK-3965-01.patch [~alex.parvulescu], the attached patch makes your test pass. It also includes your test. Can you have a look at it? > SegmentPropertyState external binary property reports unusual size > ------------------------------------------------------------------ > > Key: OAK-3965 > URL: https://issues.apache.org/jira/browse/OAK-3965 > Project: Jackrabbit Oak > Issue Type: Bug > Components: segmentmk > Reporter: Alex Parvulescu > Assignee: Alex Parvulescu > Priority: Minor > Attachments: ExternalBlobIT.java.patch, OAK-3965-01.patch > > > Calling getSize on an external binary reports a very unusual size: > {code} > world = {2318898817333174704 bytes} > {code} > the binary is actually around 17k in size. > I think this happens because of how the size is computed, a sort of a read > overflow, and it also affects the toString method [0]. > [0] > https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentPropertyState.java#L202 -- This message was sent by Atlassian JIRA (v6.3.4#6332)