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
Fix to RESetMapReduce timeout #21233
Comments
comment:2
Now I'm thinking that in this part + except Empty:
+ aborted = self._aborted.value
+ logger.debug('Timed out waiting for results; aborted: %s' %
+ aborted)
+ if aborted:
+ return I can actually even do away with checking
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
+from Queue import Empty this is not compatible with python3 |
comment:5
I mean, okay. But the only difference is |
comment:6
I am trying to move towards py3, so I keep an eye on backward moves. There are surely many that escape my vigilance. I would be strongly in favor of imposing that new code must be py3-compatible. Some of the patchbot plugins try to look out for that. "from six.moves import queue" will do the job for you here. I am using six all over the place, so I guess it is required. |
comment:7
Great, happy to make the change. But let's also get a policy documented to that effect. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Hi Erik, In the method |
Changed branch from u/embray/map-reduce-abort-issues to u/hivert/map-reduce-abort-issues |
comment:12
Wow, this was a long time ago, and I never got around to looking at it again. Thank you hivert for the review...
By "new timer" do you mean the new timeout in
I think the point here is that the abort timer only calls But I guess you might have a point that now the New commits:
|
comment:13
I see your point though about raising |
comment:14
Actually, I took a closer look at this again, and I think it's correct as-is. In The point is that the timer ends and |
comment:15
This fix is needed to fix some test results on Cygwin, but is not a major blocker otherwise. |
Changed keywords from map-reduce to map-reduce windows cygwin |
Reviewer: Emmanuel Charpentier |
comment:19
It just plain timed out for me on sage-on-gentoo but the backtrace doesn't look useful, I may have to work on the debugging setup. |
comment:20
Can't reproduce that at all. You get it only with this patch? |
comment:21
Sage 8.0 has been released, I guess, so the milestone should be changed, I guess. |
comment:22
It occurs to me that that test is just bad. The |
Changed branch from u/hivert/map-reduce-abort-issues to u/embray/map-reduce-abort-issues |
New commits:
|
comment:24
This is still the only consistently failing test on Cygwin. Any chance someone can check this? It had positive_review except for one randomly failing test, which actually wasn't particularly related to this ticket, which I fixed. |
comment:25
does not apply |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:29
LGTM. |
Changed reviewer from Emmanuel Charpentier to Emmanuel Charpentier, Travis Scrimshaw |
Changed branch from u/embray/map-reduce-abort-issues to |
This fixes two sort of related issues.
The first is a test failure I had for this module on my Windows machine (though possibly not all that related to Cygwin):
The computation timeout method crashes and the computation finishes "normally" due to a bug in the ordering of
self._timer.cancel()
andself.finish()
which I fixed immediately.However, the test was still failing due to the calculation still finishing before the timeout. I lowered the timeout by an order of magnitude, which worked around it. But I also wanted to convince myself that the timeout was really working properly, so I instead modified the test to timeout on a much larger calculation. That was failing which led to finding the second issue fixed here, which is described in more detail in the commit message.
Possibly related: #24241
CC: @hivert
Component: combinatorics
Keywords: map-reduce windows cygwin
Author: Erik Bray
Branch/Commit:
c426977
Reviewer: Emmanuel Charpentier, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/21233
The text was updated successfully, but these errors were encountered: