Skip to content

Commit

Permalink
HDFS-16552. Fix NPE for TestBlockManager (#4210)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5ebbacc)
  • Loading branch information
tomscut authored and tasanuma committed Apr 23, 2022
1 parent 261b11f commit 9132eeb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ public void testChooseSrcDNWithDupECInDecommissioningNode() throws Exception {

@Test
public void testSkipReconstructionWithManyBusyNodes() {
NameNode.initMetrics(new Configuration(), HdfsServerConstants.NamenodeRole.NAMENODE);
long blockId = -9223372036854775776L; // real ec block id
// RS-3-2 EC policy
ErasureCodingPolicy ecPolicy =
Expand Down Expand Up @@ -899,6 +900,7 @@ public void testSkipReconstructionWithManyBusyNodes() {

@Test
public void testSkipReconstructionWithManyBusyNodes2() {
NameNode.initMetrics(new Configuration(), HdfsServerConstants.NamenodeRole.NAMENODE);
long blockId = -9223372036854775776L; // real ec block id
// RS-3-2 EC policy
ErasureCodingPolicy ecPolicy =
Expand Down

0 comments on commit 9132eeb

Please sign in to comment.