HDFS-12378. TestClientProtocolForPipelineRecovery#testZeroByteBlockRecovery fails on trunk. (Lei (Eddy) Xu)
This commit is contained in:
parent
390c2b5df0
commit
61cee3a0b9
@ -3000,8 +3000,16 @@ void transferReplicaForPipelineRecovery(final ExtendedBlock b,
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user