Project

General

Profile

Actions

Bug #58287

open

rgwlc/notifications: initialize object state before accessing object size for use in notify

Added by Matt Benjamin over 1 year ago. Updated 12 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
lifecycle notification backport_processed
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In remove_expired_obj(...), the value of obj->get_obj_size() is sent as the value for object size by the corresponding notification, but that is guaranteed to be 0 if obj->get_obj_state(...) has not been previously called (it hasn't).

This results in lc notifies sending 0 uniformly for obj_size, rather than the stored size.


Related issues 4 (1 open3 closed)

Has duplicate rgw - Bug #58282: zero size is reported for lifecycle notifications on versioned bucketsDuplicateYuval Lifshitz

Actions
Copied to rgw - Backport #59012: quincy: rgwlc/notifications: initialize object state before accessing object size for use in notifyNewMatt BenjaminActions
Copied to rgw - Backport #59013: reef: rgwlc/notifications: initialize object state before accessing object size for use in notifyResolvedMatt BenjaminActions
Copied to rgw - Backport #61370: pacific: rgwlc/notifications: initialize object state before accessing object size for use in notifyRejectedMatt BenjaminActions
Actions

Also available in: Atom PDF