Skip to content

Commit

Permalink
Remove the removeLease operation from the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyanlei-8130 committed Jul 28, 2023
1 parent 7222fe5 commit fb8e4d3
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void testFirstIncompleteBlockReport() throws Exception {
cluster.waitActive();

FSNamesystem fsn = cluster.getNamesystem();

NameNode nameNode = cluster.getNameNode();
// pretend to be in safemode
NameNodeAdapter.enterSafeMode(nameNode, false);
Expand Down Expand Up @@ -337,10 +337,6 @@ public void testFirstIncompleteBlockReport() throws Exception {
// Wait until BlockManager calls processReport
delayer.waitForCall();

// Remove full block report lease about dn
spyBlockManager.getBlockReportLeaseManager()
.removeLease(datanodeDescriptor);

// Allow blockreport to proceed
delayer.proceed();

Expand Down

0 comments on commit fb8e4d3

Please sign in to comment.