Skip to content

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

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

jdurgin merged 2 commits into
masterfrom
wip-10104

Conversation

@dmick

@dmick dmick commented Nov 18, 2014

Copy link
Copy Markdown
Member

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 [email protected]

Comment thread src/pybind/rados.py Outdated

Copy link
Copy Markdown
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
Copy Markdown
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

dmick commented Dec 4, 2014

Copy link
Copy Markdown
Member Author

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 <[email protected]>
Also, factor out some common code between the two tests

Signed-off-by: Dan Mick <[email protected]>
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 <[email protected]>
@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