Skip to content

Timer race condition#685

Closed
Massi78 wants to merge 3 commits into
apache:masterfrom
Massi78:timer_race_condition
Closed

Timer race condition#685
Massi78 wants to merge 3 commits into
apache:masterfrom
Massi78:timer_race_condition

Conversation

@Massi78
Copy link
Copy Markdown

@Massi78 Massi78 commented Jan 6, 2017

Using the execute_async() method, it may happen either _set_final_result() or _set_final_exception() is called before the _start_timer() execution.
Since both _set_final_result() and _set_final_exception() are responsible for cancelling the timer contained in the ResponseFuture object, in the case above the started timer won't be cancelled until the timeout condition is triggered even if the result has been already returned

@datastax-bot
Copy link
Copy Markdown

Hi @Massi78, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

Sincerely,
DataStax Bot.

@datastax-bot
Copy link
Copy Markdown

Thank you @Massi78 for signing the Contribution License Agreement.

Cheers,
DataStax Bot.

@aholmberg
Copy link
Copy Markdown
Contributor

Thanks for the PR. This looks related to PYTHON-644, which we happen to be looking into presently. We are planning to get this in for the next release.

@mambocab mambocab mentioned this pull request Jan 11, 2017
@mambocab
Copy link
Copy Markdown
Contributor

Thanks again for the PR. We took a slightly different approach in #690, so I'm going to close this. Please feel free to make another PR or file a JIRA if the changes there don't address your concerns.

@mambocab mambocab closed this Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants