rgw: RGW Quota has a bug when restart radosgw client #23619
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can reproduce this issue as below:
first,
enable user quota, set max objects 5, set max_size_kb 100M
set rgw_bucket_quota_ttl = 0, rgw_user_quota_bucket_sync_interval = 0
second,
upload 5 small objects, then upload the sixth object, the size quota while exceed
third,
change rgw_bucket_quota_ttl = 3000, rgw_user_quota_bucket_sync_interval = 1500
restart radosgw client,
delete all the objects while we just upload,
fouth,
now, we upload object will exceed the size quota.
Signed-off-by: Xueyu Bai baixueyu@inspur.com