Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16672

Fix lease interval comparison in BlockReportLeaseManager

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      monotonicNowMs is generated by System.nanoTime(), direct comparison is not recommended.

       

      org.apache.hadoop.hdfs.server.blockmanagement.BlockReportLeaseManager#pruneIfExpired

      if (monotonicNowMs < node.leaseTimeMs + leaseExpiryMs) {
        return false;
      } 

      Attachments

        Issue Links

          Activity

            People

              dzcxzl dzcxzl
              dzcxzl dzcxzl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m