Project

General

Profile

Actions

Bug #16648

closed

radosgw stats entries instead of files of multipart upload files when incomplete

Added by pengju jiao almost 8 years ago. Updated almost 8 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
rgw,stats
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

First, put an object named "atom-mac.zip" to an existing bucket with using s3 api 'Initiate Multi-part Upload', 'Multipart Upload Part' and 'Complete Multipart Upload', the file had been divided into 18 parts.

Second, query user stats with command ‘radosgw-admin user stats --uid= jstat'.
[root@ceph03 ~]# radosgw-admin user stats --uid=jstat {
"stats": {
"total_entries": 18,
"total_bytes": 86189754,
"total_bytes_rounded": 86192128
},
"last_stats_sync": "0.000000",
"last_stats_update": "2016-07-11 05:04:48.675504Z"
}

With the stats info returned, find that, the "total_entries" has been increased by 18.

The question is, rgw stats entries instead of files(objects) in user's sight, is this reasonable?

In my opinion, a rgw user(general user or administrator) care for how many files that he has uploaded
rather than how many entries parts(parts) he has uploaded.
For example, if I put a file with using multi part, rgw should stats the 1 file instead of 18 entries.

Actions

Also available in: Atom PDF