HDFS-16160. Improve the parameter annotation in DatanodeProtocol#sendHeartbeat (#3291)

This commit is contained in:
litao 2021-08-19 09:51:00 +08:00 committed by GitHub
parent dcddc6a59f
commit 0e922aab41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -101,18 +101,22 @@ public interface DatanodeProtocol {
* an array of "DatanodeCommand" objects in HeartbeatResponse.
* A DatanodeCommand tells the DataNode to invalidate local block(s),
* or to copy them to other DataNodes, etc.
* @param registration datanode registration information
* @param reports utilization report per storage
* @param xmitsInProgress number of transfers from this datanode to others
* @param xceiverCount number of active transceiver threads
* @param failedVolumes number of failed volumes
* @param volumeFailureSummary info about volume failures
* @param registration datanode registration information.
* @param reports utilization report per storage.
* @param dnCacheCapacity the total cache capacity of the datanode (in bytes).
* @param dnCacheUsed the amount of cache used by the datanode (in bytes).
* @param xmitsInProgress number of transfers from this datanode to others.
* @param xceiverCount number of active transceiver threads.
* @param failedVolumes number of failed volumes.
* @param volumeFailureSummary info about volume failures.
* @param requestFullBlockReportLease whether to request a full block
* report lease.
* @param slowPeers Details of peer DataNodes that were detected as being
* slow to respond to packet writes. Empty report if no
* slow peers were detected by the DataNode.
* @throws IOException on error
* @param slowDisks Details of disks on DataNodes that were detected as
* being slow. Empty report if no slow disks were detected.
* @throws IOException on error.
*/
@Idempotent
public HeartbeatResponse sendHeartbeat(DatanodeRegistration registration,