Skip to content

Commit

Permalink
code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyanlei-8130 committed Aug 4, 2023
1 parent f4a7c1c commit 3f614b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,10 @@ public boolean processReport(final DatanodeID nodeID,
return !node.hasStaleStorages();
}

// Remove the DN lease only when we have received block reports for all storages for a particular DN.
/**
* Remove the DN lease only when we have received block reports
* for all storages for a particular DN.
*/
void removeDNLeaseIfNeeded(DatanodeDescriptor node) {
boolean needRemoveLease = true;
for (DatanodeStorageInfo sInfo : node.getStorageInfos()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ public void testFirstIncompleteBlockReport() throws Exception {
datanodeStorages[i] = storages[i].getStorage();
StorageBlockReport[] reports = createReports(datanodeStorages, 100);

// The first multiple send once, simulating the failure of the first report, only send successfully once
// The first multiple send once, simulating the failure of the first report,
// only send successfully once
if(i == 0){
rpcServer.blockReport(dnRegistration, poolId, reports, brContext);
}
Expand Down

0 comments on commit 3f614b8

Please sign in to comment.