Repository navigation
cls/refcount: store and use list of retired tags - #15673
Conversation
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]>
|
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. |
|
@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). |
| DECODE_START(1, bl); | ||
| DECODE_START(2, bl); | ||
| ::decode(refs, bl); | ||
| if (struct_v >= 2) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
@yuriw can you add this one to your testing branch? |
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]