From: Nithya Balachandran Date: Mon, 24 Nov 2025 15:37:43 +0000 (+0000) Subject: rgw/bucket-logging: handle async log commits X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F713%2Fhead;p=s3-tests.git rgw/bucket-logging: handle async log commits Modified to work with the new asynchronous buckt logging commit mechanism. Fixes: https://tracker.ceph.com/issues/71365 Signed-off-by: Nithya Balachandran (cherry picked from commit ec113ccbca1dcb3c34fce4f47e9ec26b58d30259) --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 5532a971..29b3110e 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -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