If a developer does a emit in the reduce function the server crashes.
1. Install Couchbase 2.0
2. Load the beer sample data
3. Create a new view in the beer-sample data
4. Keep the default values
5- Add a custom reduce function:
function (keys, values, rereduce)
7- Click "Show Results"
>> Server Crashed
I know that it is not something that is supposed to be done, but one developer that was "playing" around with views and try to understand how reduce works made a mistake in a copy and paste and kills his server.
Our view engine should not crash the server, when bad code is inserted.