tmap change breaks rbd test
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ah, crap.
Okay, I think we should take the existing TMAPRM op and re-add the ENOENT check, and then change the mds to use a new TMAPRMSLOPPY op that doesn't error out.
sage
Quoted 20 lines · Dan Mick
tmap_rm()no longer fails on nonexistent keys
(29fae494d0b1459c8bb934d42446e0ada7355402)causing
rbd_removeof nonexistent image to succeed without error (because, in the case that there's no header object,rbd_removekeeps trying to clean up other bits likerbd_directory; in so doing, it relies ontmap_rm()to fail removing the key fromrbd_directory, or else it assumes that this was an old-style image that we've just removed the last trace of and returns success)This breaks test_rbd.test_remove_dne in
test/pybind/test_rbd.pyWe could change librbd obviously. Did you scan for other users, though?...maybe there are more lurking
Thoughts?
Quoted 5 lines · Sage Weil
Ah, crap.
Okay, I think we should take the existing TMAPRM op and re-add the ENOENT check, and then change the mds to use a new TMAPRMSLOPPY op that doesn't error out.
Pushed wip-tmap with a fix. It adds the tmap op code.
Conveniently, the old tmap implementation interpreted op code it didn't understand in exactly the right way (as a sloppy removal).
sage
Quoted 32 lines
sage
Quoted 10 lines · Dan Mick
tmap_rm()no longer fails on nonexistent keys
(29fae494d0b1459c8bb934d42446e0ada7355402)causing
rbd_removeof nonexistent image to succeed without error (because, in the case that there's no header object,rbd_removekeeps trying to clean up other bits likerbd_directory; in so doing, it relies ontmap_rm()to fail removing the key fromrbd_directory, or else it assumes that this was an old-style image that we've just removed the last trace of and returns success)Quoted 10 lines
This breaks test_rbd.test_remove_dne in
test/pybind/test_rbd.pyWe could change librbd obviously. Did you scan for other users, though?...maybe there are more lurking
Thoughts?
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html