Project

General

Profile

Bug #22568

rgw: update quota is inconsistent at add/del object with compression

Added by fang yuxiang over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/05/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

one can reproduce as bellow:
first: setup
1. enable compression
2. create a user 'tt'
3. create a bucket 'ttb'
4. radosgw-admin quota enable -n client.radosgw.ascos-105-193 --quota-scope=user --uid=tt
5. radosgw-admin quota set -n client.radosgw.ascos-105-193 --quota-scope=user --uid=tt --max-size=1073741824

then:
1. upload a zero bytes object with size 1073741824
2. delete the object
3. retry to upload it

s3cmd -c tt put ./zero s3://ttb && s3cmd -c tt del s3://ttb/zero && s3cmd -c tt put ./zero s3://ttb

will got:
ERROR: S3 error: 403 (QuotaExceeded)

Also available in: Atom PDF