Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-2096

Share a single FileChannel between FileChannelJournalSegmentWriter and its readers

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 7.0.12, 8.0.5, 9.0.1
    • None
    • clustering

      Currently we create a FileChannel for each JournalSegment's writer and then a separate channel every time we open a reader.

      This is needed as long as these are touching FileChannel's position, but once we address that, we can open the file exactly once and share it as needed. The result of doing so is faster reader allocation as well as lower file descriptor usage.

      This will need some figuring out due to lifecycle, of these objects, but at the day, the channel should be allocated (and owned) by JournalSegment.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: