Project

General

Profile

Actions

Bug #47524

open

Ceph doesn't return the complete timestamp (missing miliseconds) for getObject calls

Added by Yatharth Sharma over 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi team,

Ceph doesn't return the correct timestamp in getObject call

LastModified field in metadata of the ListObject() call contains milliseconds values. On the other hand lastModidied field in metadata of GetObject() call is always with milliseconds as all 0s.

Example 1

ListObject response

```

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;&gt;&lt;Name&gt;s3listobjectstests.testv2simple-20200917t215132-zpej2auwa83hope&lt;/Name&gt;&lt;Prefix&gt;&lt;/Prefix&gt;&lt;MaxKeys&gt;1000&lt;/MaxKeys&gt;&lt;IsTruncated&gt;false&lt;/IsTruncated&gt;&lt;Contents&gt;&lt;Key&gt;a&lt;/Key&gt;&lt;LastModified&gt;2020-09-17T21:51:38.067Z&lt;/LastModified&gt;&lt;ETag&gt;&quot;8d777f385d3dfec8815d20f7496026dc&quot;&lt;/ETag&gt;&lt;Size&gt;4&lt;/Size&gt;&lt;StorageClass&gt;STANDARD&lt;/StorageClass&gt;&lt;Type&gt;Normal&lt;/Type&gt;&lt;/Contents&gt;&lt;Contents&gt;&lt;Key&gt;b&lt;/Key&gt;&lt;LastModified&gt;2020-09-17T21:51:38.253Z&lt;/LastModified&gt;&lt;ETag&gt;&quot;8d777f385d3dfec8815d20f7496026dc&quot;&lt;/ETag&gt;&lt;Size&gt;4&lt;/Size&gt;&lt;StorageClass&gt;STANDARD&lt;/StorageClass&gt;&lt;Type&gt;Normal&lt;/Type&gt;&lt;/Contents&gt;&lt;Contents&gt;&lt;Key&gt;c&lt;/Key&gt;&lt;LastModified&gt;2020-09-17T21:51:38.304Z&lt;/LastModified&gt;&lt;ETag&gt;&quot;8d777f385d3dfec8815d20f7496026dc&quot;&lt;/ETag&gt;&lt;Size&gt;4&lt;/Size&gt;&lt;StorageClass&gt;STANDARD&lt;/StorageClass&gt;&lt;Type&gt;Normal&lt;/Type&gt;&lt;/Contents&gt;&lt;KeyCount&gt;3&lt;/KeyCount&gt;&lt;/ListBucketResult>

```

getObjectResponse

```

Content-Length: 4

Accept-Ranges: bytes

Last-Modified: Thu, 17 Sep 2020 21:51:38 GMT

x-rgw-object-type: Normal

ETag: "8d777f385d3dfec8815d20f7496026dc"

x-amz-request-id: tx000000000000000002c8b-005f63db2d-13c4-default

Content-Type: text/plain

Date: Thu, 17 Sep 2020 21:54:53 GMT

Connection: Keep-Alive

```

Example 2 (see the attached screen shot)

Get Object timestamp is 1600380214000
List Object timestamp is 1600380214350

Thanks,
Yatharth


Files

Actions #1

Updated by Greg Farnum almost 3 years ago

  • Project changed from Ceph to rgw
Actions

Also available in: Atom PDF