Skip to content

add test_object_copy_16m to test refcounting of tail objects#473

Merged
alimaredia merged 1 commit intoceph:masterfrom
cbodley:wip-copyobj-tails
Oct 6, 2022
Merged

add test_object_copy_16m to test refcounting of tail objects#473
alimaredia merged 1 commit intoceph:masterfrom
cbodley:wip-copyobj-tails

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Sep 30, 2022

i don't think any of our CopyObj test cases were large enough to have tail objects, so weren't exercising our tail object ref ounting strategy

key2 = 'obj2'
client.copy_object(Bucket=bucket_name, Key=key2, CopySource=copy_source)
response = client.get_object(Bucket=bucket_name, Key=key2)
eq(response['contentlength'], 16*1024*1024)
Copy link
Contributor

Choose a reason for hiding this comment

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

@cbodley contentlength in response should be ContentLength like the above test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wups, thanks!

i don't think any of our CopyObj test cases were large enough to have
tail objects, so weren't exercising our tail object ref counting
strategy

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley cbodley force-pushed the wip-copyobj-tails branch from ef1a532 to defb8eb Compare October 5, 2022 18:37
@alimaredia alimaredia self-requested a review October 6, 2022 20:57
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