HDFS-12378. TestClientProtocolForPipelineRecovery#testZeroByteBlockRecovery fails on trunk. (Lei (Eddy) Xu)

This commit is contained in:
Lei Xu 2017-09-14 17:02:48 -07:00
parent 390c2b5df0
commit 61cee3a0b9

View File

@ -3000,8 +3000,16 @@ void transferReplicaForPipelineRecovery(final ExtendedBlock b,
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);
}
} }
} }