Skip to content

Commit 54eb123

Browse files
committed
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 <nithya.balachandran@ibm.com> (cherry picked from commit ec113cc)
1 parent e0c4ff7 commit 54eb123

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

s3tests/functional/test_s3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17248,6 +17248,8 @@ def test_bucket_logging_roll_time():
1724817248
time.sleep(roll_time/2)
1724917249
client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
1725017250

17251+
# It can take up to 10s for the bucket logging manager to detect a new commit list
17252+
time.sleep(11)
1725117253
response = client.list_objects_v2(Bucket=log_bucket_name)
1725217254
keys = _get_keys(response)
1725317255
len(keys) == 1
@@ -17270,7 +17272,7 @@ def test_bucket_logging_roll_time():
1727017272

1727117273
time.sleep(roll_time)
1727217274
client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
17273-
17275+
time.sleep(5)
1727417276
response = client.list_objects_v2(Bucket=log_bucket_name)
1727517277
keys = _get_keys(response)
1727617278
assert len(keys) > 1

0 commit comments

Comments
 (0)