Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.3.0, 2.6.0
-
None
Description
private void initDataXceiver(Configuration conf) throws IOException { // find free port or use privileged port provided TcpPeerServer tcpPeerServer; if (secureResources != null) { tcpPeerServer = new TcpPeerServer(secureResources); } else { tcpPeerServer = new TcpPeerServer(dnConf.socketWriteTimeout, DataNode.getStreamingAddr(conf)); } tcpPeerServer.setReceiveBufferSize(HdfsConstants.DEFAULT_DATA_SOCKET_SIZE);
The last line sets SO_RCVBUF explicitly, thus disabling tcp auto-tuning on some system.
Shall we make this behavior configurable?
Attachments
Attachments
Issue Links
- is related to
-
HDFS-10326 Disable setting tcp socket send/receive buffers for write pipelines
- Resolved
-
HDFS-9259 Make SO_SNDBUF size configurable at DFSClient side for hdfs write scenario
- Resolved