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

Double wrapping over RandomAccessFile in LocalReplicaInPipeline#createStreams

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: hdfs
    • Labels:
      None
    • Hadoop Flags:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: