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

Use NIO in the implementation of FileAccess.Mapped#read

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • 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

      FileAccess.Random#read currently uses RandomAccessFile#readFully() to read a segment from a tar file. That method requires a byte array and does not work with ByteBuffer instances directly. To make this method more universal (e.g. to work also for off heap byte buffers) I would like to change it to use FileChannel#read instead.

        Attachments

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: