HDFS-8749. Fix findbugs warnings in BlockManager.java. Contributed by Brahma Reddy Battula.
(cherry picked from commit d66302ed9b
)
This commit is contained in:
parent
2a01495544
commit
3a0318ea93
|
@ -690,6 +690,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-8729. Fix TestFileTruncate#testTruncateWithDataNodesRestartImmediately
|
||||
which occasionally failed. (Walter Su via jing9)
|
||||
|
||||
HDFS-8749. Fix findbugs warnings in BlockManager.java.
|
||||
(Brahma Reddy Battula via aajisaka)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -3585,8 +3585,6 @@ public class BlockManager implements BlockStatsMXBean {
|
|||
String src, BlockInfo[] blocks) {
|
||||
for (BlockInfo b: blocks) {
|
||||
if (!b.isComplete()) {
|
||||
final BlockInfoUnderConstruction uc =
|
||||
(BlockInfoUnderConstruction)b;
|
||||
final int numNodes = b.numNodes();
|
||||
final int min = getMinStorageNum(b);
|
||||
final BlockUCState state = b.getBlockUCState();
|
||||
|
|
Loading…
Reference in New Issue