HDFS-16501. Print the exception when reporting a bad block (#4062)
Reviewed-by: tomscut <litao@bigo.sg>
(cherry picked from commit 45ce1cce50
)
This commit is contained in:
parent
e13408d9d2
commit
66be0a713f
|
@ -289,7 +289,7 @@ public class VolumeScanner extends Thread {
|
||||||
volume, block);
|
volume, block);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG.warn("Reporting bad {} on {}", block, volume);
|
LOG.warn("Reporting bad {} on {}", block, volume, e);
|
||||||
scanner.datanode.handleBadBlock(block, e, true);
|
scanner.datanode.handleBadBlock(block, e, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue