Skip to content
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

Possible crash when choosing certain server selection algorithms #23

Closed
jhuckaby opened this issue Apr 25, 2017 · 1 comment
Closed

Comments

@jhuckaby
Copy link
Owner

I received the following bug report via e-mail:

We are using it from quite a couple of months but we ended up in a crash recently when we tried to create a new server group and tried running the job on that group as a target.

Can you please help us in this regard, we are also trying to look into this. Find below the logs

Stack trace (in crash.log):
Tue Apr 11 2017 12:30:00 GMT+0000 (UTC)
TypeError: Cannot read property 'hostname' of null
    at constructor.chooseServer (/home/deployer/cronicle/Cronicle-0.6.11/lib/job.js:338:45)
    at /home/deployer/cronicle/Cronicle-0.6.11/lib/job.js:118:25
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:726:13
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:52:16
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:269:32
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:44:16
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:723:17
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/async/lib/async.js:167:37
    at /home/deployer/cronicle/Cronicle-0.6.11/lib/job.js:54:6
    at /home/deployer/cronicle/Cronicle-0.6.11/node_modules/pixl-server-storage/list.js:775:6

Log excerpt from Cronicle.log:
[1491913800.582][2017-04-11 12:30:00][qa-**********com][Cronicle][debug][4][Scheduler Minute Tick: Advancing time up to: 2017/04/11 12:30:00][]
[1491913800.585][2017-04-11 12:30:00][ qa-**********com][Cronicle][debug][4][Auto-launching scheduled item: ej17okjd60x (etl_charging_sessions) for timestamp: Tue, Apr 11, 2017 12:30 PM UTC][]

Although I never got reply from the author when asking which server selection algorithm he/she used, I suspect it may be a bug in the Least CPU / Least Memory code. I found a possible bug in both.

Commit ca42be4 should fix this.

- Joe

@pallavibatra-cpi
Copy link

Hello joseph,
We were using Least Memory algorithm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants