Pita/etherpad-lite — Issue #457: Deleting pad through API freezes etherpad
Author: riseuplabs
Created: 2012-02-16 21:38:04+00:00
State: open

I was trying to do a delete via the API, and the entire etherpad instance just stopped responding. The logs at INFO level show this:

[2012-02-16 13:27:07.702] [INFO] API - REQUEST, deletePad, {"apikey":"xxx","padID":"Mxx7E8P"}
[2012-02-16 13:27:07.728] [INFO] ueberDB - garbage collected 500 values
[2012-02-16 13:27:07.744] [INFO] ueberDB - garbage collected 244 values

and then nothing... forever. I cannot connect to the pad at all either and existing connections die.

I tried to strace the node process and all it was doing was the following over and over:

[pid 20332] gettimeofday({1329427918, 680985}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 716272}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 753299}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 786331}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 820296}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 856574}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 888730}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 921309}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 951961}, NULL) = 0
[pid 20332] gettimeofday({1329427918, 981990}, NULL) = 0
[pid 20332] gettimeofday({1329427919, 12557}, NULL) = 0
[pid 20332] gettimeofday({1329427919, 45768}, NULL) = 0
[pid 20332] gettimeofday({1329427919, 76333}, NULL) = 0
[pid 20332] gettimeofday({1329427919, 110943}, NULL) = 0

restarting etherpad-lite makes things work again, but again if I attempt to do an API delete, it tanks things :(

I'm at the latest git rev (7096ce7f1ef8962205e27db49284d440d834c26f) using the most recent commit to the ruby library (671aba6a6666619dd7b1f090bfc11f1b37dea614)