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

Sync file ranges of JournalSegmentWriter.flush()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • 10.0.0
    • None
    • None

      JournalSegmentWriter.flush() ends up calling either FileChannel.force() or MappedByteBuffer.force(). In both cases we are telling the OS to figure out what it should actually do.

      Since our files are usually grown in a linear fashion, we should be able to track a single window for each file that needs syncing. That in turn will help the OS by clamping the file range it needs to figure out.

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

              Created:
              Updated: