Skip to content

Commit

Permalink
HDFS-16552. Fix NPE for TestBlockManager
Browse files Browse the repository at this point in the history
  • Loading branch information
tomscut committed Apr 22, 2022
1 parent bf4730b commit c721b5c
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 c721b5c

Please sign in to comment.