HDFS-15978. Solve DatanodeManager#getBlockRecoveryCommand() printing IOException. (#2913) Contributed by JiangHua Zhu.

This commit is contained in:
jianghuazhu 2021-04-25 14:31:51 +08:00 committed by GitHub
parent 6857a05d6a
commit c486dc396c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1658,7 +1658,7 @@ private BlockRecoveryCommand getBlockRecoveryCommand(String blockPoolId,
BlockUnderConstructionFeature uc = b.getUnderConstructionFeature();
if(uc == null) {
throw new IOException("Recovery block " + b +
"where it is not under construction.");
" where it is not under construction.");
}
final DatanodeStorageInfo[] storages = uc.getExpectedStorageLocations();
// Skip stale nodes during recovery