Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11301

Double wrapping over RandomAccessFile in LocalReplicaInPipeline#createStreams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha2
    • hdfs
    • None
    • Reviewed

    Description

      In LocalReplicaInPipeline#createStreams, there is a WrappedFileOutputStream created over a WrappedRandomAccessFile. This double layer of instrumentation is unnecessary.

      blockOut = fileIoProvider.getFileOutputStream(getVolume(),
      fileIoProvider.getRandomAccessFile(getVolume(), blockFile, "rw")
      .getFD());

      Attachments

        1. HDFS-11301.000.patch
          1 kB
          Hanisha Koneru

        Activity

          People

            hanishakoneru Hanisha Koneru
            hanishakoneru Hanisha Koneru
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: