Repository navigation
librbd/managed_lock/GetLockerRequest: Fix no valid lockers case - #51297
Conversation
|
@Matan-B will https://tracker.ceph.com/issues/59589 be completely fixed by this PR or does it require an additional crimson fix? I don't totally follow your comment, "Note: This fix helps with unrelated Crimson issue https://tracker.ceph.com/issues/59589" |
Hey @ajarr, The comment was there to explain how this bug was encountered in the first place. Since this PR doesn't relate to the actual fix I have removed the comment to avoid confusion. |
|
jenkins test make check |
6ffd079 to
22dfa5a
Compare
ajarr
left a comment
There was a problem hiding this comment.
If we're going to backport this fix to previous releases, I think having a corresponding RBD tracker ticket will help.
|
See: `m_locker->address = iter->second.addr.get_legacy_str();` In the case where `iter->second.addr` is an empty address, m_locker->address string is assigned with "0)/0" and therfore will never result in an empty string. Use `is_blank_ip()` before `get_legacy_str()` Signed-off-by: Matan Breizman <[email protected]>
22dfa5a to
7482bee
Compare
Signed-off-by: Ilya Dryomov <[email protected]>
|
Added unit tests since there was a pretty obvious gap there. |
|
jenkins test make check |
See:
m_locker->address = iter->second.addr.get_legacy_str();In the case where
iter->second.addris an empty address,m_locker->addressstring is assigned with "0)/0" and therfore will never result in an empty string.Use
is_blank_ip()beforeget_legacy_str()instead.Fixes: https://tracker.ceph.com/issues/59641
Signed-off-by: Matan Breizman [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows