HDFS-12378. TestClientProtocolForPipelineRecovery#testZeroByteBlockRecovery fails on trunk. (Lei (Eddy) Xu)
This commit is contained in:
parent
390c2b5df0
commit
61cee3a0b9
|
@ -3000,8 +3000,16 @@ public class DataNode extends ReconfigurableBase
|
||||||
b.setNumBytes(visible);
|
b.setNumBytes(visible);
|
||||||
|
|
||||||
if (targets.length > 0) {
|
if (targets.length > 0) {
|
||||||
new Daemon(new DataTransfer(targets, targetStorageTypes,
|
Daemon daemon = new Daemon(threadGroup,
|
||||||
targetStorageIds, b, stage, client)).start();
|
new DataTransfer(targets, targetStorageTypes, targetStorageIds, b,
|
||||||
|
stage, client));
|
||||||
|
daemon.start();
|
||||||
|
try {
|
||||||
|
daemon.join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new IOException(
|
||||||
|
"Pipeline recovery for " + b + " is interrupted.", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue