[ceph-users] Re: Etag change of a parent object

2023-12-14 Thread Robin H. Johnson
On Wed, Dec 13, 2023 at 10:57:10AM +0100, Rok Jaklič wrote:
> Hi,
> 
> shouldn't etag of a "parent" object change when "child" objects are added
> on s3?
> 
> Example:
> 1. I add an object to test bucket: "example/" - size 0
> "example/" has an etag XYZ1
> 2. I add an object to test bucket: "example/test1.txt" - size 12
> "example/test1.txt" has an etag XYZ2
> "example/" has an etag XYZ1 ... should this change?
> 
> I understand that object storage is not hierarchical by design and objects
> are "not connected" by some other means than the bucket name.
If you understand the storage is not hierarchical, why do you think one
object is a parent of the other (child) object?

In your example, there are 2 objects:
"example/"
"example/test1.txt"

The "/" in the name is not special in any way. It would still be 2
objects if the object names were:
"exampleZ"
"exampleZtest1.txt"

I want to understand why you (and others) feel that one object is the
parent the other child object.

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Etag change of a parent object

2023-12-13 Thread Daniel Gryniewicz



On 12/13/23 05:27, Janne Johansson wrote:

Den ons 13 dec. 2023 kl 10:57 skrev Rok Jaklič :


Hi,

shouldn't etag of a "parent" object change when "child" objects are added
on s3?

Example:
1. I add an object to test bucket: "example/" - size 0
 "example/" has an etag XYZ1
2. I add an object to test bucket: "example/test1.txt" - size 12
 "example/test1.txt" has an etag XYZ2
 "example/" has an etag XYZ1 ... should this change?

I understand that object storage is not hierarchical by design and objects
are "not connected" by some other means than the bucket name.



So, if they are not connected, then the first 0-sized object did not change.
If it doesn't change, it should not have a different ETag. Simple as that.



Expanding a bit: etag is related to the contents of the object only.  It 
has nothing to do with any other object.  As such, it will never change.


Daniel
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Etag change of a parent object

2023-12-13 Thread Janne Johansson
Den ons 13 dec. 2023 kl 10:57 skrev Rok Jaklič :

> Hi,
>
> shouldn't etag of a "parent" object change when "child" objects are added
> on s3?
>
> Example:
> 1. I add an object to test bucket: "example/" - size 0
> "example/" has an etag XYZ1
> 2. I add an object to test bucket: "example/test1.txt" - size 12
> "example/test1.txt" has an etag XYZ2
> "example/" has an etag XYZ1 ... should this change?
>
> I understand that object storage is not hierarchical by design and objects
> are "not connected" by some other means than the bucket name.
>

So, if they are not connected, then the first 0-sized object did not change.
If it doesn't change, it should not have a different ETag. Simple as that.

-- 
May the most significant bit of your life be positive.
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io