Project

General

Profile

Actions

Bug #22568

open

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

Added by fang yuxiang over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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)

Actions

Also available in: Atom PDF