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

Duplicate binaries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11
    • core
    • None

    Description

      The following piece of code currently causes a binary to be stored (or at least read) twice:

      InputStream stream = ...;
      Session session = ...;
      Value value = sesion.getValueFactory().createValue(stream);
      session.getRootNode().setProperty("data", value);
      node.save();
      

      The reason is the ValueBasedBlob class that prevents the underlying storage to see that the Blob being saved was already stored earlier and thus no extra copy is needed.

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: