Conversation
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
style: I think indentation should be 2 spaces here
There was a problem hiding this comment.
Thanks for catching it! I keep forgetting that ESlint doesn't complain about C++ formatting. Does anybody want to share their vimrc with me for correct auto formatting?
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
style: align with previous argument ?
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
The indentation looks off here.
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
I'm not sure about the second part of this error message. If we can't say with certainty what the problem is, I don't think we should leave questions like this.
There was a problem hiding this comment.
Maybe we could then check if the file limit was actually reached?
There was a problem hiding this comment.
I was trying to make the message more helpful than just saying that the call failed. But I'm also OK with deleting the second part.
There was a problem hiding this comment.
Should it say "initialize uv loop"? To give more context?
There was a problem hiding this comment.
Maybe we could then check if the file limit was actually reached?
That would be pretty nice. I’m not sure whether that’s feasible to do in a cross-platform way, but for POSIXes it probably would work.
There was a problem hiding this comment.
Yeah, I think @addaleax is right that it may be difficult to do x-platform reliably. The message could be extended a bit with something like, Failed to initialize loop. This may be caused, for instance, by reaching the file limit.
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
sorry to bother you, but indentation is still off by 1.
There was a problem hiding this comment.
No problem, my fault for being sloppy.
892de33 to
7fe7b13
Compare
|
Oh, @thealphanerd do you feel citgm should be run before landing this? |
addaleax
left a comment
There was a problem hiding this comment.
LGTM but the commit message should start with vm: or maybe src:?
(I don’t think CITGM is really necessary here, but if somebody wants to run it, sure)
src/node_watchdog.cc
Outdated
There was a problem hiding this comment.
I think this line can be dropped.
Add an error message in watchdog if we abort because uv_loop_init fails. Fixes nodejs#8555
|
I fixed the formatting, error message, extra CHECK, and commit message. CI again: https://ci.nodejs.org/view/All/job/node-test-pull-request/4146/ |
|
I don't believe it needs to be but should this be semver-major? |
|
I don't think this should be semver major since it's an abort. I'd go with patch. |
|
I'll start landing this:
|
Add an error message in watchdog if we abort because uv_loop_init fails. PR-URL: nodejs#8634 Fixes: nodejs#8555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
@fhinkel do you think this should be backported? |
|
ping @fhemberger |
|
I guess you wanted to ping @fhinkel. 😄 |
|
ping @fhinkel |
|
If it lands cleanly, yes. |
Checklist
make -j4 test(UNIX) passesAffected core subsystem(s)
vm, watchdog
Description of change
Add an error message if we abort because uv_init_loop fails.
Fixes #8555