Dangerous Reduce is not protected

Hey,

So i tried to following reduce function for testing the fail over system with couchdb:

function (doc)
{
emit(doc.date,1);
}

Well this is not working , but its also crash all server at the cluster completly!!

Although using devlopment view with a diffrent desgin doc its still crash the CPU of all the servers at the node only restarting after service restart on every server.

i think its a huge risk that should ne noted for all couchbase users and to understand the limitions of devlopment enviorment. there is a JS syntax check , but there is now system recovery scheme for this event.

so watch out...

1 Answer

« Back to question.

Hi,

I was not able to repro this issue in Couchbase 2.2

Can you confirm the Couchbase build version you are using and platform?

Thanks,
Don