Description of problem: When using civetweb, the usage logging is always reporting the full object size downloaded, even though the download was aborted in the middle. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Configure rgw with civetweb 2. Turn on usage logging 3. Upload large object 4. Trim usage log 5. Start downloading object, abort after start 6. Wait for usage info to be flushed (30 seconds by default) 7. Inspect usage Actual results: Usage will show complete object size Expected results: Usage should only show partial object size Additional info:
need qa_ack
merged to master upstream, not yet backported to hammer (should be in v0.94.3 or v0.94.4)
Verified in ceph-0.94.3-1.el7cp.x86_64 Enabled usage log. Uploaded an object of ~147M. Trimmed the log and started the download. Aborted the download before it finished to get a partial object. Usage when object is uploaded: "total": { "bytes_sent": 153464191, "bytes_received": 0, "ops": 3, "successful_ops": 3 } After partial download: "total": { "bytes_sent": 95746687, "bytes_received": 0, "ops": 3, "successful_ops": 2 } Shows partial object size.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:2512
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:2066