HDFS-8749. Fix findbugs warnings in BlockManager.java. Contributed by Brahma Reddy Battula.
This commit is contained in:
parent
5214876792
commit
d66302ed9b
|
@ -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
|
||||||
|
|
|
@ -3596,8 +3596,6 @@ public class BlockManager implements BlockStatsMXBean {
|
||||||
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();
|
||||||
|
|
Loading…
Reference in New Issue