Skip to content

Commit 3f614b8

Browse files
committed
code style fix
1 parent f4a7c1c commit 3f614b8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2957,7 +2957,10 @@ public boolean processReport(final DatanodeID nodeID,
29572957
return !node.hasStaleStorages();
29582958
}
29592959

2960-
// Remove the DN lease only when we have received block reports for all storages for a particular DN.
2960+
/**
2961+
* Remove the DN lease only when we have received block reports
2962+
* for all storages for a particular DN.
2963+
*/
29612964
void removeDNLeaseIfNeeded(DatanodeDescriptor node) {
29622965
boolean needRemoveLease = true;
29632966
for (DatanodeStorageInfo sInfo : node.getStorageInfos()) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ public void testFirstIncompleteBlockReport() throws Exception {
324324
datanodeStorages[i] = storages[i].getStorage();
325325
StorageBlockReport[] reports = createReports(datanodeStorages, 100);
326326

327-
// The first multiple send once, simulating the failure of the first report, only send successfully once
327+
// The first multiple send once, simulating the failure of the first report,
328+
// only send successfully once
328329
if(i == 0){
329330
rpcServer.blockReport(dnRegistration, poolId, reports, brContext);
330331
}

0 commit comments

Comments
 (0)