Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2833 Refactor TarMK
  3. OAK-3690

Decouple SegmentBufferWriter from SegmentStore

    XMLWordPrintableJSON

Details

    Description

      Currently SegmentBufferWriter.flush() directly calls SegmentStore.writeSegment() once the current segment does not have enough space for the next record. We should try to cut this dependency as SegmentBufferWriter should only be concerned with providing buffers for segments. Actually writing these to the store should be handled by a higher level component.

      A number of deadlock (e.g. (OAK-2560, OAK-3179, OAK-3264) we have seen is one manifestation of this troublesome dependency.

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: