You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm doing some intensive use of cluster module and I'm still getting this error sometimes (nodejs v0.12.0).
AssertionError: Resource leak detected.
at removeWorker (cluster.js:346:9)
at ChildProcess.<anonymous> (cluster.js:366:34)
at ChildProcess.g (events.js:199:16)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
Is it possible that 'exit' event could be fired before 'disconnect' and thus be the reason for this bug to happen ?
Is this a Node.js bug or am I misusing the cluster module at some point ?
If so, what scenario could possibly trigger this bug ? Could you show me a sample code which intentionally triggers this exception ?
Hello guys.
I'm doing some intensive use of cluster module and I'm still getting this error sometimes (nodejs v0.12.0).
I can see that it happens when there is still some handles left after all workers are deleted.
https://github.com/joyent/node/blob/master/lib/cluster.js#L347-L348
I also noticed that you call
removeHandlesForWorker()only on 'disconnect' event, not on 'exit'.https://github.com/joyent/node/blob/master/lib/cluster.js#L382
Is it possible that 'exit' event could be fired before 'disconnect' and thus be the reason for this bug to happen ?
Is this a Node.js bug or am I misusing the cluster module at some point ?
If so, what scenario could possibly trigger this bug ? Could you show me a sample code which intentionally triggers this exception ?
Thanks a lot.