HDFS-8749. Fix findbugs warnings in BlockManager.java. Contributed by Brahma Reddy Battula.

This commit is contained in:
Akira Ajisaka 2015-07-10 15:04:06 +09:00
parent 5214876792
commit d66302ed9b
2 changed files with 3 additions and 2 deletions

View File

@ -1026,6 +1026,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8729. Fix TestFileTruncate#testTruncateWithDataNodesRestartImmediately HDFS-8729. Fix TestFileTruncate#testTruncateWithDataNodesRestartImmediately
which occasionally failed. (Walter Su via jing9) 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 Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -3596,8 +3596,6 @@ public boolean checkBlocksProperlyReplicated(
String src, BlockInfo[] blocks) { String src, BlockInfo[] blocks) {
for (BlockInfo b: blocks) { for (BlockInfo b: blocks) {
if (!b.isComplete()) { if (!b.isComplete()) {
final BlockInfoUnderConstruction uc =
(BlockInfoUnderConstruction)b;
final int numNodes = b.numNodes(); final int numNodes = b.numNodes();
final int min = getMinStorageNum(b); final int min = getMinStorageNum(b);
final BlockUCState state = b.getBlockUCState(); final BlockUCState state = b.getBlockUCState();