[ 
https://issues.apache.org/jira/browse/HDFS-3953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467387#comment-13467387
 ] 

Jing Zhao commented on HDFS-3953:
---------------------------------

The value of HdfsConstants.DEFAULT_DATA_SOCKET_SIZE is 128KB, and in 
DFSClient#create(String, boolean, short, long, Progressable), 
dfsClientConf.ioBufferSize (default value is 4096) is used as value of buffer 
size. So I guess the buffer size is used for creating BufferedOutputStream 
instance? I.e., in DFSOutputStream.DataStreamer#createBlockOutputStream and 
DFSOutputStream.DataStreamer#transfer, we should use the given buffer size for 
creating BufferedOutputStream instance.
                
> DFSOutputStream constructor does not use bufferSize parameter
> -------------------------------------------------------------
>
>                 Key: HDFS-3953
>                 URL: https://issues.apache.org/jira/browse/HDFS-3953
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>
> DFSOutputStream constructor does not use bufferSize parameter. However, a 
> buffer size is always passed in many other methods defined in DFSClient, 
> DistributedFileSystem, and Hdfs. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to