Skip to content

rgw/logging: modify tests to allow for committing empty objects#688

Merged
yuvalif merged 1 commit intoceph:masterfrom
yuvalif:wip-yuval-72542
Sep 9, 2025
Merged

rgw/logging: modify tests to allow for committing empty objects#688
yuvalif merged 1 commit intoceph:masterfrom
yuvalif:wip-yuval-72542

Conversation

@yuvalif
Copy link
Copy Markdown
Contributor

@yuvalif yuvalif commented Sep 4, 2025

new tests were added and existing tests that assumed the previous behavior were modified.
testing: ceph/ceph#65387

Comment thread s3tests_boto3/functional/test_s3.py Outdated
src_names = []
# make sure first flush is not happening in parllel
# TODO: this is caused by an unlikely race condtion
#_flush_logs(client, src_bucket_name)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to comment out this line?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will delete the commented workaround.
code now handles the race condition on first flush :-)
so test should cover that

Comment thread s3tests_boto3/functional/test_s3.py Outdated
Comment on lines +15840 to +15841
# make sure first flush is not happening in parllel
# TODO: this is caused by an unlikely race condtion
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: typo

Suggested change
# make sure first flush is not happening in parllel
# TODO: this is caused by an unlikely race condtion
# make sure first flush is not happening in parallel
# TODO: this is caused by an unlikely race condition

@nbalacha
Copy link
Copy Markdown
Contributor

nbalacha commented Sep 8, 2025

Looks good otherwise.

new tests were added and existing tests that assumed the previous
behavior were modified.
testing: ceph/ceph#65387

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
@yuvalif
Copy link
Copy Markdown
Contributor Author

yuvalif commented Sep 9, 2025

@yuvalif yuvalif merged commit d073c5e into ceph:master Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants