Skip to content

rados.py: fix misnamed 'wait_*' routines, add true wait/wait-with-cb#2959

Merged
jdurgin merged 2 commits intomasterfrom
wip-10104
Dec 4, 2014
Merged

rados.py: fix misnamed 'wait_*' routines, add true wait/wait-with-cb#2959
jdurgin merged 2 commits intomasterfrom
wip-10104

Conversation

@dmick
Copy link
Member

@dmick dmick commented Nov 18, 2014

Also modify aio_read test for wait: write an object, take its active set
down, try to aio_read; verify read doesn't complete until active set is
allowed back up

Fixes: #10104
Signed-off-by: Dan Mick dan.mick@redhat.com

Copy link
Member

Choose a reason for hiding this comment

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

it'll always return 0, so I'd suggest leaving out the return value from the python wrappers for all these wait_for_* functions

Copy link
Member Author

Choose a reason for hiding this comment

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

good point.

@dmick
Copy link
Member Author

dmick commented Dec 4, 2014

Rebased on master; added new commits for review comments and to add a separate test for "wait_for_complete_and_cb()". I'll squash the middle commit before push once you get a chance to look, Josh.

dmick added 2 commits December 4, 2014 13:08
Also modify aio_read test for wait: write an object, take its active set
down, try to aio_read; verify read doesn't complete until active set is
allowed back up

Fixes: #10104
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Also, factor out some common code between the two tests

Signed-off-by: Dan Mick <dan.mick@redhat.com>
jdurgin added a commit that referenced this pull request Dec 4, 2014
rados.py: fix misnamed 'wait_*' routines, add true wait/wait-with-cb

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 1576311 into master Dec 4, 2014
@jdurgin jdurgin deleted the wip-10104 branch December 4, 2014 21:36
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.

3 participants