You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "ZanderXu (Jira)" <ji...@apache.org> on 2023/03/22 03:16:00 UTC

[jira] [Created] (HDFS-16962) The blockReport RPC should not update the lastBlockReportTime if this blockReport is ignored

ZanderXu created HDFS-16962:
-------------------------------

             Summary: The blockReport RPC should not update the lastBlockReportTime if this blockReport is ignored
                 Key: HDFS-16962
                 URL: https://issues.apache.org/jira/browse/HDFS-16962
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: ZanderXu
            Assignee: ZanderXu


The blockReport RPC should not update the lastBlockReportTime if this blockReport is ignored. the related code as bellows:
{code:java}
public DatanodeCommand blockReport(final DatanodeRegistration nodeReg,
      String poolId, final StorageBlockReport[] reports,
      final BlockReportContext context) throws IOException {
  // code placeholder
  ...
  try {
    // this blockReport may be ignored if bm.checkBlockReportLease return false
    if (bm.checkBlockReportLease(context, nodeReg)) {
      // code placeholder
      ...
    } 
  }
  // If this blockReport is ignored, the removeBRLeaseIfNeeded should not update the lastBlockReportTime
  bm.removeBRLeaseIfNeeded(nodeReg, context);

  // code placeholder
  ...

  return null;
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org