[ 
https://issues.apache.org/jira/browse/HDFS-8680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612655#comment-14612655
 ] 

Chris Nauroth commented on HDFS-8680:
-------------------------------------

Hi [~anu].  I just noticed that {{OzoneUtils}} constructs {{Date}} instances 
based on {{Time#monotonicNow}}.  I expect this doesn't create correct dates, 
because the {{Date}} constructor expects milliseconds since 1970, but 
{{Time#monotonicNow}} is based on {{System#nanoTime}}, which can return any 
arbitrary number depending on the state of the timer.  Switching to 
{{System#currentTimeMillis}} ought to fix this.

> OzoneHandler : Add Local StorageHandler support for volumes
> -----------------------------------------------------------
>
>                 Key: HDFS-8680
>                 URL: https://issues.apache.org/jira/browse/HDFS-8680
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Anu Engineer
>            Assignee: Anu Engineer
>         Attachments: hdfs-8680-HDFS-7240.001.patch
>
>
> Add a local StorageHandler that can store data into local DB. This is useful 
> for running tests against MiniDFSCluster in the stand-alone mode.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to