worker was kill by SIGKILL, master need to catch the uncatch error #403

Closed
fengmk2 opened this Issue Aug 4, 2014 · 1 comment

Projects

None yet

1 participant

@fengmk2
Member
fengmk2 commented Aug 4, 2014

Make sure master process not exit.

[Sun Aug 03 2014 22:52:12 GMT+0800 (CST)] [master:27507] wroker exit: Error: worker 27510 died (code: null, signal: SIGKILL, suicide: false, state: dead)
    at EventEmitter.<anonymous> (/home/mk2/git/cnpmjs.org/dispatch.js:55:15)
    at EventEmitter.emit (events.js:115:17)
    at ChildProcess.<anonymous> (cluster.js:294:15)
    at ChildProcess.g (events.js:196:16)
    at ChildProcess.EventEmitter.emit (events.js:107:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
events.js:82
      throw er; // Unhandled 'error' event
            ^
Error: channel closed
    at ChildProcess.target.send (child_process.js:413:26)
    at sendHelper (cluster.js:597:8)
    at RoundRobinHandle.handoff (cluster.js:178:3)
    at RoundRobinHandle.distribute (cluster.js:164:20)
@fengmk2 fengmk2 added the bug label Aug 4, 2014
@fengmk2
Member
fengmk2 commented Aug 4, 2014
$ cat .tmp/logs/nodejs_stdout.log
[Fri Aug 01 2014 18:45:51 GMT+0800 (CST)] [worker:29033] new worker start
[Fri Aug 01 2014 18:45:51 GMT+0800 (CST)] [worker:29035] new worker start
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).
[Fri Aug 01 2014 18:45:53 GMT+0800 (CST)] [sync_worker:29036] syncing with all mode
[Fri Aug 01 2014 18:45:53 GMT+0800 (CST)] [worker:29036] mysql ready, got 13 tables
[Fri Aug 01 2014 18:45:54 GMT+0800 (CST)] [worker:29033] Server started, registry server listen at 127.0.0.1:7001, web listen at 127.0.0.1:7002, cluster: true
[Fri Aug 01 2014 18:45:54 GMT+0800 (CST)] [worker:29035] Server started, registry server listen at 127.0.0.1:7001, web listen at 127.0.0.1:7002, cluster: true
[Fri Aug 01 2014 18:45:54 GMT+0800 (CST)] [worker:29035] mysql ready, got 13 tables
[Fri Aug 01 2014 18:45:54 GMT+0800 (CST)] [worker:29033] mysql ready, got 13 tables
Deprecation warning: moment().subtract(period, number) is deprecated. Please use moment().subtract(number, period).
Deprecation warning: moment().subtract(period, number) is deprecated. Please use moment().subtract(number, period).
FATAL ERROR: node::smalloc::Alloc(v8::Handle<v8::Object>, size_t, v8::ExternalArrayType) Out Of Memory
[Mon Aug 04 2014 11:16:49 GMT+0800 (CST)] [master:29028] syncer exit: SyncerWorkerDiedError: syncer 29036 died (code: null, signal: SIGABRT, stdout: null, stderr: null)
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).
[Mon Aug 04 2014 11:16:55 GMT+0800 (CST)] [sync_worker:2449] syncing with all mode
[Mon Aug 04 2014 11:16:55 GMT+0800 (CST)] [worker:2449] mysql ready, got 13 tables
FATAL ERROR: node::smalloc::Alloc(v8::Handle<v8::Object>, size_t, v8::ExternalArrayType) Out Of Memory
[Mon Aug 04 2014 11:43:31 GMT+0800 (CST)] [master:29028] wroker exit: Error: worker 29035 died (code: null, signal: SIGABRT, suicide: false, state: dead)
    at EventEmitter.<anonymous> (/home/mk2/git/cnpmjs.org/dispatch.js:55:15)
    at EventEmitter.emit (events.js:115:17)
    at ChildProcess.<anonymous> (cluster.js:294:15)
    at ChildProcess.g (events.js:196:16)
    at ChildProcess.EventEmitter.emit (events.js:107:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
events.js:82
      throw er; // Unhandled 'error' event
            ^
Error: channel closed
    at ChildProcess.target.send (child_process.js:413:26)
    at sendHelper (cluster.js:597:8)
    at RoundRobinHandle.handoff (cluster.js:178:3)
    at RoundRobinHandle.distribute (cluster.js:164:20)
@fengmk2 fengmk2 self-assigned this Aug 4, 2014
@fengmk2 fengmk2 added this to the 1.0 milestone Aug 4, 2014
@fengmk2 fengmk2 closed this in 758d1d4 Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment