Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,9 @@ static class StripedFileNonStripedChecksumComputer

@Override
void checksumBlocks() throws IOException {
int tmpTimeout = getClient().getConf().getChecksumEcSocketTimeout() * 1 +
getClient().getConf().getSocketTimeout();
int tmpTimeout =
getClient().getConf().getChecksumEcSocketTimeout() * ecPolicy.getNumDataUnits()
+ getClient().getConf().getSocketTimeout();
setTimeout(tmpTimeout);

for (bgIdx = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public interface HdfsClientConfigKeys {
String DFS_CHECKSUM_COMBINE_MODE_KEY = "dfs.checksum.combine.mode";
String DFS_CHECKSUM_COMBINE_MODE_DEFAULT = "MD5MD5CRC";
String DFS_CHECKSUM_EC_SOCKET_TIMEOUT_KEY = "dfs.checksum.ec.socket-timeout";
int DFS_CHECKSUM_EC_SOCKET_TIMEOUT_DEFAULT = 3000;
int DFS_CHECKSUM_EC_SOCKET_TIMEOUT_DEFAULT = 30000;
String DFS_DATANODE_SOCKET_WRITE_TIMEOUT_KEY =
"dfs.datanode.socket.write.timeout";
String DFS_CLIENT_DOMAIN_SOCKET_DATA_TRAFFIC =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4465,7 +4465,7 @@

<property>
<name>dfs.checksum.ec.socket-timeout</name>
<value>3000</value>
<value>30000</value>
<description>
Default timeout value in milliseconds for computing the checksum of striped blocks.
Recommended to set the same value between client and DNs in a cluster because mismatching
Expand Down