From 34ba829503836e851668ed008215f5bca0768b80 Mon Sep 17 00:00:00 2001 From: Nithya Balachandran Date: Mon, 24 Nov 2025 15:37:43 +0000 Subject: [PATCH] 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) --- s3tests/functional/test_s3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3