You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "JiangHua Zhu (Jira)" <ji...@apache.org> on 2022/07/04 12:49:00 UTC

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

JiangHua Zhu created HDFS-16650:
-----------------------------------

             Summary: 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
             Fix For: 2.9.2


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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org