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

Support non chunk storage in OakDirectory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.9, 1.8.0
    • lucene
    • None

    Description

      Logging this issue based on offline discussion with catholicon.

      Currently OakDirectory stores files in chunk of 1 MB each. So a 1 GB file would be stored in 1000+ chunks of 1 MB.

      This design was done to support direct usage of OakDirectory with Lucene as Lucene makes use of random io. Chunked storage allows it to seek to random position quickly. If the files are stored as Blobs then its only possible to access via streaming which would be slow

      As most setup now use copy-on-read and copy-on-write support and rely on local copy of index we can have an implementation which stores the file as single blob.

      Pros

      • Quite a bit of reduction in number of small blobs stored in BlobStore. Which should reduce the GC time specially for S3
      • Reduced overhead of storing a single file in repository. Instead of array of 1k blobids we would be stored a single blobid
      • Potential improvement in IO cost as file can be read in one connection and uploaded in one.

      Cons
      It would not be possible to use OakDirectory directly (or would be very slow) and we would always need to do local copy.

      Attachments

        1. 0003-OAK-6269-Support-non-chunk-storage-in-OakDirectory.patch
          18 kB
          Vikas Saurabh
        2. 0002-OAK-6269-Support-non-chunk-storage-in-OakDirectory.patch
          24 kB
          Vikas Saurabh
        3. 0001-OAK-6269-Support-non-chunk-storage-in-OakDirectory.patch
          28 kB
          Vikas Saurabh
        4. S3DsSupport.patch
          5 kB
          Vikas Saurabh
        5. s3Files.true.txt
          280 kB
          Vikas Saurabh
        6. s3Files.false.txt
          325 kB
          Vikas Saurabh

        Issue Links

          Activity

            People

              catholicon Vikas Saurabh
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: