Skip to content

Commit fb8e4d3

Browse files
committed
Remove the removeLease operation from the unit tests
1 parent 7222fe5 commit fb8e4d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockReportLease.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public void testFirstIncompleteBlockReport() throws Exception {
283283
cluster.waitActive();
284284

285285
FSNamesystem fsn = cluster.getNamesystem();
286-
286+
287287
NameNode nameNode = cluster.getNameNode();
288288
// pretend to be in safemode
289289
NameNodeAdapter.enterSafeMode(nameNode, false);
@@ -337,10 +337,6 @@ public void testFirstIncompleteBlockReport() throws Exception {
337337
// Wait until BlockManager calls processReport
338338
delayer.waitForCall();
339339

340-
// Remove full block report lease about dn
341-
spyBlockManager.getBlockReportLeaseManager()
342-
.removeLease(datanodeDescriptor);
343-
344340
// Allow blockreport to proceed
345341
delayer.proceed();
346342

0 commit comments

Comments
 (0)