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

getBinaryReferences() may return null when using the split persistence

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.9.9
    • Component/s: segment-tar
    • Labels:
      None

      Description

      When the new SplitPersistence is used for the SegmentMK, the getBinaryReferences() method may sometimes break the contract and return null. It will happen for the reader referencing an archive which hasn't been closed yet by another Oak instance (and therefore missing the .brf entry).

      Since the .brf file is unavailable in this case, we should at least return a valid, empty binary references structure.

        Attachments

        1. OAK-7805.patch
          9 kB
          Tomek Rękawek
        2. OAK-7805-blob-test.patch
          7 kB
          Amit Jain

          Activity

            People

            • Assignee:
              tomek.rekawek Tomek Rękawek
              Reporter:
              tomek.rekawek Tomek Rękawek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: