svn merge -c 1485861 Merging from trunk to branch-2 to fix HDFS-4807.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1485863 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ba49c56aa
commit
3f9b3d49a3
|
@ -2426,6 +2426,9 @@ Release 0.23.8 - UNRELEASED
|
|||
|
||||
HDFS-3875. Issue handling checksum errors in write pipeline. (kihwal)
|
||||
|
||||
HDFS-4807. createSocketForPipeline() should not include timeout extension
|
||||
on connect. (Cristina L. Abad via kihwal)
|
||||
|
||||
Release 0.23.7 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1293,7 +1293,7 @@ public class DFSOutputStream extends FSOutputSummer implements Syncable {
|
|||
final InetSocketAddress isa = NetUtils.createSocketAddr(dnAddr);
|
||||
final Socket sock = client.socketFactory.createSocket();
|
||||
final int timeout = client.getDatanodeReadTimeout(length);
|
||||
NetUtils.connect(sock, isa, client.getRandomLocalInterfaceAddr(), timeout);
|
||||
NetUtils.connect(sock, isa, client.getRandomLocalInterfaceAddr(), client.getConf().socketTimeout);
|
||||
sock.setSoTimeout(timeout);
|
||||
sock.setSendBufferSize(HdfsConstants.DEFAULT_DATA_SOCKET_SIZE);
|
||||
if(DFSClient.LOG.isDebugEnabled()) {
|
||||
|
|
Loading…
Reference in New Issue