Bug #25168
openrgw: can't remove shadow file when copy object from other placement after remove object
0%
Description
hi,
i have two placement
{
"key": "placement-1",
"val": {
"index_pool": "default.rgw.buckets.index",
"data_pool": "default.rgw.buckets.data",
"data_extra_pool": "default.rgw.buckets.non-ec",
"index_type": 0,
"compression": ""
}
},
{
"key": "placement-2",
"val": {
"index_pool": "default.rgw.buckets.index",
"data_pool": "default.rgw.buckets.test",
"data_extra_pool": "default.rgw.buckets.non-ec",
"index_type": 0,
"compression": ""
}
}
i create 2 buckets ,
s3cmd mb s3://test1 --bucket-location=default:placement-1
s3cmd mb s3://test2 --bucket-location=default:placement-2
upload 10M file to test1 and the copy test1/10M to test2/10M_copy with boto3
from boto3.session import Session
import boto3
access_key = "yly"
secret_key = "yly"
session = Session(access_key, secret_key)
url = "http://127.0.0.1"
config_dict = { 'signature_version' : 's3', 'connect_timeout': 30000, 'read_timeout': 30000}
config = boto3.session.Config(**config_dict)
s3_client = session.client('s3', endpoint_url=url, config=config)
print s3_client.copy_object(Bucket="test2", Key="10M_copy", CopySource=str('test1'+'/'+"10M"))
and then remove objs
s3cmd rm s3://test1/*
s3cmd rm s3://test2/*
and process gc
radosgw-admin gc process --include-all
and this two shadow file left and can not be remove by gc
Updated by joke lee over 5 years ago
Updated by Abhishek Lekshmanan over 5 years ago
Updated by Casey Bodley over 5 years ago
- Status changed from New to Fix Under Review
- Assignee set to Casey Bodley