[ 
https://issues.apache.org/jira/browse/HDFS-11301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hanisha Koneru updated HDFS-11301:
----------------------------------
    Attachment: HDFS-11301.000.patch

Removed the double layer of instrumentation by passing a RandomAccessFile 
instead of a WrappedRandomAccessFile to getFileOutputStream.

> Double wrapping over RandomAccessFile in LocalReplicaInPipeline#createStreams
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-11301
>                 URL: https://issues.apache.org/jira/browse/HDFS-11301
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>            Priority: Minor
>         Attachments: HDFS-11301.000.patch
>
>
> In LocalReplicaInPipeline#createStreams, there is a WrappedFileOutputStream 
> created over a WrappedRandomAccessFile. This double layer of instrumentation 
> is unnecessary. 
> {quote}
>       blockOut = fileIoProvider.getFileOutputStream(getVolume(),
>           fileIoProvider.getRandomAccessFile(getVolume(), blockFile, "rw")
>               .getFD());
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to