-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-19675: Fixes pool cleanup issue #57
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:
Thanks again to your contribution and we look forward to looking at it! |
Waiting on CLA approval. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also have a test here to prove that this new functionality works out alright.
Lib/multiprocessing/pool.py
Outdated
w.start() | ||
util.debug('added worker') | ||
except: | ||
debug("Process creation error. Cleaning-up (%d) workers." % (len(self._pool))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be util.debug
, right?
Per continued discussion on https://bugs.python.org/issue19675 this patch still also needs tests. If you want to close this PR and submit another or continue iterating here, I'll leave that to you. |
I'll keep iterating. I've accounted for the other suggestions locally. I'm
just trying to figure out what needs to be done to test this. See other
thread.
…On Mon, Feb 13, 2017 at 11:56 AM, Davin Potts ***@***.***> wrote:
Per continued discussion on https://bugs.python.org/issue19675 this patch
still also needs tests. If you want to close this PR and submit another or
continue iterating here, I'll leave that to you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#57 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AArraj3dH4b39wB6-5d4mwE4L3s1MPqKks5rcItPgaJpZM4L-qfA>
.
|
I just added the following note about testing to the issue: (http://bugs.python.org/issue19675) I don't think this can be tested. Throwing exceptions in the remote process causes exceptions that can't be caught in the same way (when the initializer fails the pool just attempts to recreate the process over and over) and I don't think it'd be acceptable to try to spawn too many processes in order to induce the original problem. There's not a lot of surface area to what we're doing here. We can't simulate failures any other way. Once we get to the point where we can merge, I'll close this PR, cherry-pick the commit into the version-specific branches, and create new PRs. |
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
=========================================
Coverage ? 82.37%
=========================================
Files ? 1427
Lines ? 350958
Branches ? 0
=========================================
Hits ? 289088
Misses ? 61870
Partials ? 0 Continue to review full report at Codecov.
|
@applio @briancurtin I am currently facing the limitations that would be resolved by this PR and would like to help in any way possible to get this merged. Do either of you have recommendations as to how we can get this PR passing all tests? |
I'm, not fan of the actual patch: if an exception happen during _handle_workers, in a case it needs to respawn just one worker, you'll terminate all correctly running workers, which look bad. |
To try and help move older pull requests forward, we are going through and backfilling 'awaiting' labels on pull requests that are lacking the label. Based on the current reviews, the best we can tell in an automated fashion is that a core developer requested changes to be made to this pull request. If/when the requested changes have been made, please leave a comment that says, |
@brettcannon, are you aware of your duplicate comments? |
@encukou yep, this one issue triggered an odd bug in my script; should be the only case. |
Merged #5614 so this should be fixed now. |
Add a pyproject.toml which forces a compatible version of setuptools Closes python#57 See merge request python-devs/importlib_resources!61
…or-3-7 CVE-2024-4032 Fix "private" (non-global) IP address ranges (pythonGH-113179…
http://bugs.python.org/issue19675
"make test" output:
"make patchcheck" also succeeds. Not sure if any other checks are required prior to posting the PR and relying on any automatic checks that ensue there.
This would obviously also need to be labeled for backporting.
https://bugs.python.org/issue19675