HDFS-8548. Minicluster throws NPE on shutdown. Contributed by surendra singh lilhore.
(cherry picked from commit 6a76250b39f33466bdc8dabab33070c90aa1a389)
This commit is contained in:
parent
d2d038b0a0
commit
8ab23d9ec1
@ -560,6 +560,9 @@ Release 2.8.0 - UNRELEASED
|
||||
|
||||
HDFS-8592. SafeModeException never get unwrapped. (wheat9)
|
||||
|
||||
HDFS-8548. Minicluster throws NPE on shutdown.
|
||||
(surendra singh lilhore via xyao)
|
||||
|
||||
Release 2.7.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -198,7 +198,11 @@ boolean removeNode(Block b, DatanodeDescriptor node) {
|
||||
}
|
||||
|
||||
int size() {
|
||||
return blocks.size();
|
||||
if (blocks != null) {
|
||||
return blocks.size();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Iterable<BlockInfo> getBlocks() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user