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

Optimize the cost of obtaining timestamps in Centralized cache management

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 2.9.2
    • None
    • caching

    Description

      Getting timestamps in Centralized cache management is done in the following ways:

      long now = new Date().getTime();
      

      This approach doesn't seem to be optimal since we only use it once here.
      It might be better to use the tool Time to get the timestamp. E.g:

      long now = Time.now();
      

      Attachments

        Issue Links

          Activity

            People

              jianghuazhu JiangHua Zhu
              jianghuazhu JiangHua Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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