Documentation #20119
closed
Documentation of Python RBD API does not say that aio_* functions call their callbacks in DIFFERENT (dummy) thread
Added by Марк Коренберг almost 7 years ago.
Updated over 4 years ago.
Description
Documentation of Python RBD API does not say that aio_* functions call their callbacks in DIFFERENT (dummy) thread
Everyone must know that special behavior. For example, next Python code (very stupid one, but just to show) will actually not hang:
count = [2]
def cb(*args):
count[0] -= 1
ceph_image.aio_read(offset1, length1, cb)
ceph_image.aio_read(offset2, length2, cb)
while count[0]:
time.sleep(0.1)
also, exceptions are silently ignored from these callbacks!
Also it does not say, that `data` argument may be None, which signs error of read operation (I'm not sure, figured out that while reading sources)
- Tracker changed from Bug to Documentation
- Project changed from Ceph to rbd
- Priority changed from Normal to Low
- Status changed from New to Closed
This bug has been judged too old to fix. This is because either it is either 1) raised against a version of Ceph prior to Luminous, or 2) just really old, and untouched for so long that it is unlikely nowadays to represent a live documentation concern.
If you think that the closing of this bug is an error, raise another bug of a similar kind. If you think that the matter requires urgent attention, please let Zac Dover know at zac.dover@gmail.com.
Also available in: Atom
PDF