Bug #39635
closedmultisite: mismatch of bucket creation times from List Buckets
0%
Description
Reproduces with two zones. s3cmd config c1.s3cfg points to the master zone, and c2.s3cfg points to the secondary zone.
1. Create a bucket on the master zone, verify that it syncs with the same creation time:
$ s3cmd -c c1.s3cfg mb s3://bucket
Bucket 's3://bucket/' created
$ s3cmd -c c1.s3cfg ls
2019-05-08 17:33 s3://bucket
$ s3cmd -c c2.s3cfg ls
2019-05-08 17:33 s3://bucket
2. Stop the secondary zone's gateway(s) and wait a couple minutes so you can tell whether the creation time changes.
3. Delete and recreate the bucket on the master zone.
$ s3cmd -c c1.s3cfg rb s3://bucket
Bucket 's3://bucket/' removed
$ s3cmd -c c1.s3cfg mb s3://bucket
Bucket 's3://bucket/' created
4. Restart secondary zone's gateways(s) so they sync the new bucket without the deletion in between.
5. Wait for metadata sync to catch up, then check the creation times again:
$ s3cmd -c c1.s3cfg ls
2019-05-08 17:37 s3://bucket
$ s3cmd -c c2.s3cfg ls
2019-05-08 17:33 s3://bucket