You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/07/04 13:05:00 UTC

[jira] [Work logged] (HDFS-16650) Optimize the cost of obtaining timestamps in Centralized cache management

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

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

                Author: ASF GitHub Bot
            Created on: 04/Jul/22 13:04
            Start Date: 04/Jul/22 13:04
    Worklog Time Spent: 10m 
      Work Description: jianghuazhu opened a new pull request, #4528:
URL: https://github.com/apache/hadoop/pull/4528

   
   ### Description of PR
   Getting timestamps in Centralized cache management is done in the following ways:
   long now = new Date().getTime();
   This way doesn't seem optimal.
   The purpose of pr here is to simplify them.
   Details: HDFS-16650
   
   ### How was this patch tested?
   Here is just a change of method, for the test, the pressure is not too big.
   
   




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

            Worklog Id:     (was: 787591)
    Remaining Estimate: 0h
            Time Spent: 10m

> Optimize the cost of obtaining timestamps in Centralized cache management
> -------------------------------------------------------------------------
>
>                 Key: HDFS-16650
>                 URL: https://issues.apache.org/jira/browse/HDFS-16650
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: caching
>            Reporter: JiangHua Zhu
>            Assignee: JiangHua Zhu
>            Priority: Major
>             Fix For: 2.9.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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();



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

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