]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/user: reset stats only returns marker when truncated
authorCasey Bodley <cbodley@redhat.com>
Thu, 19 Sep 2024 16:19:19 +0000 (12:19 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 19 Sep 2024 16:26:57 +0000 (12:26 -0400)
commit5400aab8d92b1260d331e72ae81030424a1e1797
tree21db59c35bdc01dad33b6b3d4dc31742b8827198
parent5ecc7400dbbb63ce990b663d2a92e87dbc17f30d
cls/user: reset stats only returns marker when truncated

the returned marker is a bucket name. when bucket names are long, the
response can overflow the 64-byte limit on responses to write operations
with librados::OPERATION_RETURNVEC. this leads to errors like:

> ERROR: could not reset user stats: (75) Value too large for defined data type

however, the client only needs this marker string to resume listing
after a truncated response. if the listing is not truncated, we can omit
the marker to save space

in general, users will have less than MAX_ENTRIES=1000 buckets, so won't
get truncated listings

Fixes: https://tracker.ceph.com/issues/51786
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/user/cls_user.cc