]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
Fix: Bucket resource leak when cleanup 345/head
authorPei <phuang1@dev-new-3-3854897.slc07.dev.ebayc3.com>
Tue, 5 May 2020 08:07:27 +0000 (01:07 -0700)
committerPei <phuang1@dev-new-3-3854897.slc07.dev.ebayc3.com>
Fri, 15 May 2020 08:21:06 +0000 (01:21 -0700)
commit713012c178b074539cd80e10a26c115194c8571f
treef5bf88198204820f3c612703a921db08b265216e
parent47a37553788ce540c7f2a6e54da3b460bd70213a
Fix: Bucket resource leak when cleanup

In the function of nuke_prefixed_buckets, if some err is thrown when deleting buckets, the left buckets remain uncleaned.
It is kind of resoruce leak on some charged platform. We have to clear them manually.

I know the original code is meant to give the user some hint by rasing error. But the resource leak of left buckets is a little annoying.

This PR would skip the problem point and continue the teardown process. The last client error would be saved and re-raised after the loop completes.

Signed-off-by: Pei <huangp0600@126.com>
Signed-off-by: Pei <phuang1@dev-new-3-3854897.slc07.dev.ebayc3.com>
s3tests_boto3/functional/__init__.py