HDFS-2454. svn merge -c 1204124 from trunk
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1204125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f1d346bf80
commit
bab6e8adde
|
@ -22,6 +22,9 @@ Release 0.23.1 - UNRELEASED
|
||||||
HDFS-2568. Use a set to manage child sockets in XceiverServer.
|
HDFS-2568. Use a set to manage child sockets in XceiverServer.
|
||||||
(harsh via eli)
|
(harsh via eli)
|
||||||
|
|
||||||
|
HDFS-2454. Move maxXceiverCount check to before starting the
|
||||||
|
thread in dataXceiver. (harsh via eli)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-2130. Switch default checksum to CRC32C. (todd)
|
HDFS-2130. Switch default checksum to CRC32C. (todd)
|
||||||
|
|
|
@ -165,14 +165,6 @@ class DataXceiver extends Receiver implements Runnable {
|
||||||
s.setSoTimeout(stdTimeout);
|
s.setSoTimeout(stdTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the xceiver count is not exceeded
|
|
||||||
int curXceiverCount = datanode.getXceiverCount();
|
|
||||||
if (curXceiverCount > dataXceiverServer.maxXceiverCount) {
|
|
||||||
throw new IOException("xceiverCount " + curXceiverCount
|
|
||||||
+ " exceeds the limit of concurrent xcievers "
|
|
||||||
+ dataXceiverServer.maxXceiverCount);
|
|
||||||
}
|
|
||||||
|
|
||||||
opStartTime = now();
|
opStartTime = now();
|
||||||
processOp(op);
|
processOp(op);
|
||||||
++opsProcessed;
|
++opsProcessed;
|
||||||
|
|
|
@ -135,6 +135,15 @@ class DataXceiverServer implements Runnable {
|
||||||
try {
|
try {
|
||||||
s = ss.accept();
|
s = ss.accept();
|
||||||
s.setTcpNoDelay(true);
|
s.setTcpNoDelay(true);
|
||||||
|
|
||||||
|
// Make sure the xceiver count is not exceeded
|
||||||
|
int curXceiverCount = datanode.getXceiverCount();
|
||||||
|
if (curXceiverCount > maxXceiverCount) {
|
||||||
|
throw new IOException("Xceiver count " + curXceiverCount
|
||||||
|
+ " exceeds the limit of concurrent xcievers: "
|
||||||
|
+ maxXceiverCount);
|
||||||
|
}
|
||||||
|
|
||||||
new Daemon(datanode.threadGroup, new DataXceiver(s, datanode, this))
|
new Daemon(datanode.threadGroup, new DataXceiver(s, datanode, this))
|
||||||
.start();
|
.start();
|
||||||
} catch (SocketTimeoutException ignored) {
|
} catch (SocketTimeoutException ignored) {
|
||||||
|
|
Loading…
Reference in New Issue