Skip to content

cls/refcount: store and use list of retired tags - #15673

Merged
yuriw merged 1 commit into
ceph:masterfrom
yehudasa:wip-20107
Jul 20, 2017
Merged

yuriw merged 1 commit into
ceph:masterfrom
yehudasa:wip-20107

Conversation

@yehudasa

Copy link
Copy Markdown
Member

Fixes: http://tracker.ceph.com/issues/20107

Keep around the list of retired tags, make sure we don't
drop a refcount using the same tag.

Signed-off-by: Yehuda Sadeh [email protected]

@jharbott

Copy link
Copy Markdown

Pretty radical fix, I wonder if it would still make sense to also include the patch I show in the issue, in order to avoid double removals completely when easily done.

@yehudasa

Copy link
Copy Markdown
Member Author

@jrosenboom we should definitely get your change in also. However, since the gc operation is not atomic, there's no guarantee there that a double release won't happen (e.g., due to restart of the radosgw process in the middle of the gc operation).

@liewegas liewegas added this to the luminous milestone Jun 20, 2017
DECODE_START(1, bl);
DECODE_START(2, bl);
::decode(refs, bl);
if (struct_v >= 2) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will an unpatched rgw simply ignore the added bl or will it cause an error? In the latter case one would need to add a new xattr instead I think. Having to upgrade all RGW nodes at the same time might not be a feasible option for operators.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rgw itself doesn't even see this data structure, it's only used in the objclass, meaning that it's an osd side change. An older version will be able to read the structure as if it didn't have this field.

@yehudasa

Copy link
Copy Markdown
Member Author

@yuriw can you add this one to your testing branch?

@yuriw
yuriw merged commit c31f25b into ceph:master Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants