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
1 changed files with 10 additions and 2 deletions

View File

@ -3000,8 +3000,16 @@ public class DataNode extends ReconfigurableBase
b.setNumBytes(visible);
if (targets.length > 0) {
new Daemon(new DataTransfer(targets, targetStorageTypes,
targetStorageIds, b, stage, client)).start();
Daemon daemon = new Daemon(threadGroup,
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);
}
}
}