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

Aaron Fabbri commented on HADOOP-16382:
---------------------------------------

 
{quote}It'd be nice if we actually got a timestamp off AWS on the completion of 
the PUT
{quote}
Yeah, the Date field returned in the PUT [response is defined 
as|https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html]
 the "time  S3 service responded" and I don't see any mention of whether or not 
this matches the S3 metadata time.

Patch looks good to me.

> Clock skew can cause S3Guard to think object metadata is out of date
> --------------------------------------------------------------------
>
>                 Key: HADOOP-16382
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16382
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.3.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> When a S3Guard entry is added for an object, its last updated flag is taken 
> from the local clock: if a getFileStatus is made immediately afterwards, the 
> timestamp of the file from the HEAD may be > than the local time, so the DDB 
> entry updated.
> This is even if the clocks are *close*. When updating an entry from S3, the 
> actual timestamp of the file should be used to fix it, not local clocks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to