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

BlobStore: use SHA-256 instead of SHA-1, and use two directory levels for FileBlobStore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.4
    • mk
    • None

    Description

      Currently we use SHA-1 as the hash algorithm for the blob store (same as with Jackrabbit 2.x). I think it makes sense if we use SHA-256 instead:

      Advantages:

      Disadvantages:

      • Longer file name
      • Longer content hash
      • Not compatible with Jackrabbit 2.x

      For the FileBlobStore, the current implementation uses only one directory level while Jackrabbit 2.x uses 3 levels. I think we should use two levels for Oak, to avoid too many files in the same directory.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: