Pita/etherpad-lite — Issue #360: Stress testing with many users on same pad crashes EtherPad
Author: mjd75
Created: 2012-01-26 14:29:13+00:00
State: open

Hi,

While doing some stress testing of EtherPad Lite I was repeatedly able to crash the server code by connecting approximately 350 clients to the same pad. The error message received was:

[2012-01-26 14:22:57.822] [ERROR] console - TypeError: Cannot read property 'author' of undefined
at /home/ubuntu/etherpad/node/handler/PadMessageHandler.js:864:71
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:462:21
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:194:13
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:97:13
at Array.forEach (native)
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:26:24
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:96:9
at /home/ubuntu/etherpad/node_modules/async/lib/async.js:193:9
at Object.map (/home/ubuntu/etherpad/node_modules/async/lib/async.js:177:23)
at Object.parallel (/home/ubuntu/etherpad/node_modules/async/lib/async.js:460:19)

This may very well have more to do with how I was stress testing than anything else (I agree that 350 people in the same pad is overkill), but I thought it probably wise to report the stack trace anyway.