Description
As per javadoc, the method FileStatus.getModificationTime() should return the time in UTC, but it returns the time in the JVM timezone.
The issue origins in AzureBlobFileSystemStore.getFileStatus() itself, since parseLastModifiedTime() returns a wrong date. I have created a file in Azure Data Lake Gen2 and when I look at it through the Azure Explorer it shows the correct modification time, but the method returns -2 hours time (I am in CET = UTC+2).
Azure Explorer last modified time:
AbfsClient parseLastModifiedTime:
It shows 15:21 CEST as utcDate, when it should be 15:21 UTC, which results in the 2 hour loss.
DateFormat.parse uses a localized calendar to parse dates which might be the source of the issue.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-17640 ABFS: transient failure of TestAzureBlobFileSystemFileStatus.testLastModifiedTime
- Open
- links to