Actions
Bug #13314
closedRados bench verification crashing when there's no objects
Status:
Resolved
Priority:
Normal
Assignee:
Abhishek Varshney
Category:
common
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
https://github.com/ceph/ceph/pull/5853
When specified pool is empty or doesn't contain valid bench objects, rados bench can crash because it attempts to memcmp through NULL pointer. Added check for valid object size (which also fixes the case when objects are there, but they're truncated), and made object_size being size_t instead of int.
Also, fix lock issue under similar conditions in seq_read_bench().
Actions