Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3965

SegmentPropertyState external binary property reports unusual size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.16, 1.4
    • segmentmk
    • None

    Description

      Calling getSize on an external binary reports a very unusual size:

      world = {2318898817333174704 bytes}
      

      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

      Attachments

        1. OAK-3965-02.patch
          4 kB
          Francesco Mari
        2. OAK-3965-01.patch
          4 kB
          Francesco Mari
        3. ExternalBlobIT.java.patch
          2 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              frm Francesco Mari
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: