[ https://issues.apache.org/jira/browse/HDFS-16962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ZanderXu resolved HDFS-16962. ----------------------------- Resolution: Invalid > 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 > Priority: Major > Labels: pull-request-available > > 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org