[ 
https://issues.apache.org/jira/browse/HDFS-16672?focusedWorklogId=796283&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-796283
 ]

ASF GitHub Bot logged work on HDFS-16672:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jul/22 07:58
            Start Date: 29/Jul/22 07:58
    Worklog Time Spent: 10m 
      Work Description: cxzl25 commented on PR #4598:
URL: https://github.com/apache/hadoop/pull/4598#issuecomment-1198990764

   Help to review when you are free. Thanks.
   @Hexiaoqiao 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 796283)
    Time Spent: 0.5h  (was: 20m)

> Fix lease interval comparison in BlockReportLeaseManager
> --------------------------------------------------------
>
>                 Key: HDFS-16672
>                 URL: https://issues.apache.org/jira/browse/HDFS-16672
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: dzcxzl
>            Assignee: dzcxzl
>            Priority: Trivial
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> monotonicNowMs is generated by System.nanoTime(), direct comparison is not 
> recommended.
>  
> org.apache.hadoop.hdfs.server.blockmanagement.BlockReportLeaseManager#pruneIfExpired
> {code:java}
> if (monotonicNowMs < node.leaseTimeMs + leaseExpiryMs) {
>   return false;
> } {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to