]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
rgw/bucket-logging: handle async log commits 713/head
authorNithya Balachandran <nithya.balachandran@ibm.com>
Mon, 24 Nov 2025 15:37:43 +0000 (15:37 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Thu, 4 Dec 2025 20:03:31 +0000 (20:03 +0000)
Modified to work with the new asynchronous buckt logging commit
mechanism.

Fixes: https://tracker.ceph.com/issues/71365
Signed-off-by: Nithya Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit ec113ccbca1dcb3c34fce4f47e9ec26b58d30259)

s3tests/functional/test_s3.py

index 5532a9714dfa347b332fab53660e4a7a7b269380..29b3110ef94148febec30cdd6a0b06ecc7ff8c2e 100644 (file)
@@ -17396,6 +17396,8 @@ def test_bucket_logging_roll_time():
     time.sleep(roll_time/2)
     client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
 
+    # It can take up to 10s for the bucket logging manager to detect a new commit list
+    time.sleep(11)
     response = client.list_objects_v2(Bucket=log_bucket_name)
     keys = _get_keys(response)
     assert len(keys) == 1
@@ -17418,7 +17420,7 @@ def test_bucket_logging_roll_time():
 
     time.sleep(roll_time)
     client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
-
+    time.sleep(5)
     response = client.list_objects_v2(Bucket=log_bucket_name)
     keys = _get_keys(response)
     assert len(keys) > 1