Skip to content

Commit 0e922aa

Browse files
authored
HDFS-16160. Improve the parameter annotation in DatanodeProtocol#sendHeartbeat (#3291)
1 parent dcddc6a commit 0e922aa

File tree

1 file changed

+11
-7
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/protocol

1 file changed

+11
-7
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/protocol/DatanodeProtocol.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,22 @@ public DatanodeRegistration registerDatanode(DatanodeRegistration registration
101101
* an array of "DatanodeCommand" objects in HeartbeatResponse.
102102
* A DatanodeCommand tells the DataNode to invalidate local block(s),
103103
* or to copy them to other DataNodes, etc.
104-
* @param registration datanode registration information
105-
* @param reports utilization report per storage
106-
* @param xmitsInProgress number of transfers from this datanode to others
107-
* @param xceiverCount number of active transceiver threads
108-
* @param failedVolumes number of failed volumes
109-
* @param volumeFailureSummary info about volume failures
104+
* @param registration datanode registration information.
105+
* @param reports utilization report per storage.
106+
* @param dnCacheCapacity the total cache capacity of the datanode (in bytes).
107+
* @param dnCacheUsed the amount of cache used by the datanode (in bytes).
108+
* @param xmitsInProgress number of transfers from this datanode to others.
109+
* @param xceiverCount number of active transceiver threads.
110+
* @param failedVolumes number of failed volumes.
111+
* @param volumeFailureSummary info about volume failures.
110112
* @param requestFullBlockReportLease whether to request a full block
111113
* report lease.
112114
* @param slowPeers Details of peer DataNodes that were detected as being
113115
* slow to respond to packet writes. Empty report if no
114116
* slow peers were detected by the DataNode.
115-
* @throws IOException on error
117+
* @param slowDisks Details of disks on DataNodes that were detected as
118+
* being slow. Empty report if no slow disks were detected.
119+
* @throws IOException on error.
116120
*/
117121
@Idempotent
118122
public HeartbeatResponse sendHeartbeat(DatanodeRegistration registration,

0 commit comments

Comments
 (0)