Adam Carnine created COUCHDB-3256:
-------------------------------------

             Summary: CouchDB Returns StatusCode 500 under testing load
                 Key: COUCHDB-3256
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3256
             Project: CouchDB
          Issue Type: Bug
            Reporter: Adam Carnine


The tests are for a CouchDB driver being written in node-js. The NPM module is 
got-couch.

The testing framework runs tests in parallel. The tests are incapsulated, 
creating and tearing down all used data, starting with creating a database and 
ending with the deletion of that database.

I think the problem might be the tests are not cleaning up after themselves and 
internally Couch is exploding instead of returning errors for things like an 
index already existing.

Below is the output from the CouchDB Log:
{code}
[notice] 2016-12-14T01:06:06.862356Z couchdb@localhost <0.2458.7> 4c86c9d973 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:07.090539Z couchdb@localhost <0.2459.7> 8c8308fce6 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:07.317133Z couchdb@localhost <0.2460.7> a3d9b840f4 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:07.541366Z couchdb@localhost <0.2461.7> 09941cfe13 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:07.765996Z couchdb@localhost <0.2462.7> 517c579a2f 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:07.993460Z couchdb@localhost <0.2463.7> 46c41f6c78 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:08.224576Z couchdb@localhost <0.2464.7> da13dbe548 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:08.451709Z couchdb@localhost <0.2465.7> d3e03db909 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2016-12-14T01:06:08.755403Z couchdb@localhost <0.2466.7> 2a7f72be26 
localhost:5984 127.0.0.1 root PUT /couch-bulk-upsert-test 201 ok 260
[notice] 2016-12-14T01:06:08.793953Z couchdb@localhost <0.2468.7> 4ffc99c764 
localhost:5984 127.0.0.1 root PUT /couch-del-test 201 ok 292
[notice] 2016-12-14T01:06:08.793952Z couchdb@localhost <0.2473.7> d0a01a71d5 
localhost:5984 127.0.0.1 root PUT /couch-list-test 201 ok 277
[notice] 2016-12-14T01:06:08.793956Z couchdb@localhost <0.2467.7> a981b9c6af 
localhost:5984 127.0.0.1 root PUT /couch-add-index-test 201 ok 297
[notice] 2016-12-14T01:06:08.793957Z couchdb@localhost <0.2469.7> c9d36216a1 
localhost:5984 127.0.0.1 root PUT /couch-insert-test 201 ok 290
[notice] 2016-12-14T01:06:08.793963Z couchdb@localhost <0.2470.7> fed1f67d10 
localhost:5984 127.0.0.1 root PUT /couch-create-test 201 ok 289
[notice] 2016-12-14T01:06:08.793977Z couchdb@localhost <0.2471.7> f3c7dbfa11 
localhost:5984 127.0.0.1 root PUT /couch-find-test 201 ok 288
[notice] 2016-12-14T01:06:08.794175Z couchdb@localhost <0.2472.7> a8236d5cf1 
localhost:5984 127.0.0.1 root PUT /couch-get-test 201 ok 288
[notice] 2016-12-14T01:06:08.875061Z couchdb@localhost <0.2489.7> 82a37baf52 
localhost:5984 127.0.0.1 root PUT /couch-bulk-upsert-test/1 201 ok 37
[notice] 2016-12-14T01:06:08.887357Z couchdb@localhost <0.2492.7> 495c600705 
localhost:5984 127.0.0.1 root DELETE /couch-add-index-test 200 ok 52
[notice] 2016-12-14T01:06:08.952895Z couchdb@localhost <0.2501.7> 7071c7f486 
localhost:5984 127.0.0.1 root POST /couch-insert-test 201 ok 49
[notice] 2016-12-14T01:06:08.952938Z couchdb@localhost <0.2504.7> 40fc88a61f 
localhost:5984 127.0.0.1 root GET /couch-create-test 200 ok 11
[notice] 2016-12-14T01:06:08.961819Z couchdb@localhost <0.2495.7> 413e7faf7c 
localhost:5984 127.0.0.1 root DELETE /couch-bulk-upsert-test 200 ok 123
[error] 2016-12-14T01:06:08.962015Z couchdb@localhost <0.2687.7> 88de732039 
rexi_server exit:killed 
[{couch_db,collect_results,3,[{file,"src/couch_db.erl"},{line,1055}]},{couch_db,collect_results_with_metrics,3,[{file,"src/couch_db.erl"},{line,1037}]},{couch_db,write_and_commit,4,[{file,"src/couch_db.erl"},{line,1067}]},{couch_db,update_docs,4,[{file,"src/couch_db.erl"},{line,994}]},{fabric_rpc,with_db,3,[{file,"src/fabric_rpc.erl"},{line,268}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
[notice] 2016-12-14T01:06:08.962253Z couchdb@localhost <0.2511.7> 88de732039 
localhost:5984 127.0.0.1 root POST /couch-bulk-upsert-test/_bulk_docs 201 ok 84
[notice] 2016-12-14T01:06:08.968829Z couchdb@localhost <0.2668.7> fa8c38c4e2 
localhost:5984 127.0.0.1 undefined GET 
/couch-bulk-upsert-test/_all_docs?include_docs=true 404 ok 2
[notice] 2016-12-14T01:06:08.979371Z couchdb@localhost <0.2652.7> 33a4df2773 
localhost:5984 127.0.0.1 root GET 
/couch-insert-test/9a97ab33eee167950197d83fd20bab2a 200 ok 23
[notice] 2016-12-14T01:06:09.013217Z couchdb@localhost <0.2498.7> 4a988a8a5b 
localhost:5984 127.0.0.1 root POST /couch-del-test 201 ok 108
[notice] 2016-12-14T01:06:09.013238Z couchdb@localhost <0.2539.7> 3a12d26244 
localhost:5984 127.0.0.1 root PUT /couch-find-test/find-foo4 201 ok 68
[notice] 2016-12-14T01:06:09.018609Z couchdb@localhost <0.2669.7> 743df712b3 
localhost:5984 127.0.0.1 root GET 
/couch-del-test/9a97ab33eee167950197d83fd20b9c63 200 ok 1
[notice] 2016-12-14T01:06:09.034198Z couchdb@localhost <0.2520.7> 51acf3169a 
localhost:5984 127.0.0.1 root PUT /couch-find-test/find-foo3 201 ok 89
[notice] 2016-12-14T01:06:09.034245Z couchdb@localhost <0.2514.7> 2340faac4c 
localhost:5984 127.0.0.1 root PUT /couch-find-test/find-foo2 201 ok 89
[notice] 2016-12-14T01:06:09.082928Z couchdb@localhost <0.2545.7> e7c87b69db 
localhost:5984 127.0.0.1 root PUT /couch-list-test/my-foo2 201 ok 130
[notice] 2016-12-14T01:06:09.092307Z couchdb@localhost <0.2507.7> 7c486dd31d 
localhost:5984 127.0.0.1 root PUT /couch-get-test/my-foo 201 ok 149
[notice] 2016-12-14T01:06:09.093370Z couchdb@localhost <0.2553.7> 9275f0b2a5 
localhost:5984 127.0.0.1 root DELETE /couch-del-test 200 ok 188
[notice] 2016-12-14T01:06:09.093370Z couchdb@localhost <0.2651.7> 0bd09ef744 
localhost:5984 127.0.0.1 root DELETE /couch-list-test 200 ok 140
[notice] 2016-12-14T01:06:09.093368Z couchdb@localhost <0.2627.7> d0a5261f92 
localhost:5984 127.0.0.1 root DELETE /couch-get-test 200 ok 150
[notice] 2016-12-14T01:06:09.093382Z couchdb@localhost <0.2626.7> ce8a90c96c 
localhost:5984 127.0.0.1 root DELETE /couch-create-test 200 ok 151
[notice] 2016-12-14T01:06:09.093471Z couchdb@localhost <0.2650.7> 82c2bf3eb1 
localhost:5984 127.0.0.1 root DELETE /couch-find-test 200 ok 148
[notice] 2016-12-14T01:06:09.093657Z couchdb@localhost <0.2550.7> e4b8a824e2 
localhost:5984 127.0.0.1 root DELETE /couch-insert-test 200 ok 189
[notice] 2016-12-14T01:06:09.104926Z couchdb@localhost <0.2673.7> 584051bd3f 
localhost:5984 127.0.0.1 undefined GET /couch-get-test/my-foo 404 ok 2
[error] 2016-12-14T01:06:09.112094Z couchdb@localhost <0.2820.7> -------- 
rexi_server exit:killed 
[{couch_db,collect_results,3,[{file,"src/couch_db.erl"},{line,1055}]},{couch_db,collect_results_with_metrics,3,[{file,"src/couch_db.erl"},{line,1037}]},{couch_db,write_and_commit,4,[{file,"src/couch_db.erl"},{line,1067}]},{couch_db,update_docs,4,[{file,"src/couch_db.erl"},{line,994}]},{fabric_rpc,with_db,3,[{file,"src/fabric_rpc.erl"},{line,268}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
[notice] 2016-12-14T01:06:09.112359Z couchdb@localhost <0.2544.7> ddbbed1d29 
localhost:5984 127.0.0.1 undefined PUT /couch-list-test/my-foo1 500 ok 160
[error] 2016-12-14T01:06:09.112739Z couchdb@localhost <0.2873.7> -------- 
rexi_server exit:killed 
[{couch_db,collect_results,3,[{file,"src/couch_db.erl"},{line,1055}]},{couch_db,collect_results_with_metrics,3,[{file,"src/couch_db.erl"},{line,1037}]},{couch_db,write_and_commit,4,[{file,"src/couch_db.erl"},{line,1067}]},{couch_db,update_docs,4,[{file,"src/couch_db.erl"},{line,994}]},{fabric_rpc,with_db,3,[{file,"src/fabric_rpc.erl"},{line,268}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
[notice] 2016-12-14T01:06:09.113004Z couchdb@localhost <0.2670.7> 29e54041a9 
localhost:5984 127.0.0.1 undefined DELETE 
/couch-del-test/9a97ab33eee167950197d83fd20b9c63?rev=1-ff8fbd4678efc0a5808c5b300a696135
 500 ok 92
[error] 2016-12-14T01:06:09.115305Z couchdb@localhost <0.2792.7> -------- 
rexi_server exit:killed 
[{couch_db,collect_results,3,[{file,"src/couch_db.erl"},{line,1055}]},{couch_db,collect_results_with_metrics,3,[{file,"src/couch_db.erl"},{line,1037}]},{couch_db,write_and_commit,4,[{file,"src/couch_db.erl"},{line,1067}]},{couch_db,update_docs,4,[{file,"src/couch_db.erl"},{line,994}]},{fabric_rpc,with_db,3,[{file,"src/fabric_rpc.erl"},{line,268}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
[notice] 2016-12-14T01:06:09.115554Z couchdb@localhost <0.2517.7> 70fd3d2cab 
localhost:5984 127.0.0.1 undefined PUT /couch-find-test/find-foo1 500 ok 170
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to