[
https://issues.apache.org/jira/browse/HADOOP-17306?focusedWorklogId=501081&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-501081
]
ASF GitHub Bot logged work on HADOOP-17306:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 15/Oct/20 12:21
Start Date: 15/Oct/20 12:21
Worklog Time Spent: 10m
Work Description: ayushtkn commented on pull request #2387:
URL: https://github.com/apache/hadoop/pull/2387#issuecomment-709274078
Thanx @vinayakumarb for the fix, the lgtm, but the test fails for me on
`macOs`. Can you exclude the Os type?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 501081)
Time Spent: 0.5h (was: 20m)
> RawLocalFileSystem's lastModifiedTime() looses milli seconds in JDK < 10.b09
> ----------------------------------------------------------------------------
>
> Key: HADOOP-17306
> URL: https://issues.apache.org/jira/browse/HADOOP-17306
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> RawLocalFileSystem's FileStatus uses {{File.lastModified()}} api from JDK.
> This api looses milliseconds due to JDK bug.
> [https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8177809]
> This bug fixed in JDK 10 b09 onwards and still exists in JDK 8 which is still
> being used in many productions.
> Apparently, {{Files.getLastModifiedTime()}} from java's nio package returns
> correct time.
> Use {{Files.getLastModifiedTime()}} instead of {{File.lastModified}} as
> workaround.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]