wohali opened a new issue #643: EUnit couchdb_views_tests failure: suspend_process after termination URL: https://github.com/apache/couchdb/issues/643 https://travis-ci.org/apache/couchdb/jobs/250135101#L3825 ``` View group shutdown couchdb_views_tests:315: couchdb_1283...*failed* in function erlang:suspend_process/1 called as suspend_process(<0.27290.0>) in call from couchdb_views_tests:'-couchdb_1283/0-fun-21-'/0 (test/couchdb_views_tests.erl, line 381) **error:badarg output:<<"">> ``` Analysis of the logfile shows the compaction completes in just 200ms: ``` [info] 2017-07-04T21:35:33.260737Z nonode@nohost <0.27290.0> -------- Compaction started for db: eunit-test-db-1499204132844268 idx: _design/foo [info] 2017-07-04T21:35:33.262754Z nonode@nohost <0.27290.0> -------- Compaction finished for db: eunit-test-db-1499204132844268 idx: _design/foo ``` so my hunch is that it is already gone by the time we call erlang:suspend_process. This test is racey. ## Possible Solution @rnewson says on IRC we could spawn it with `{hibernate_after,0}` but that only works for gen_server:start_link, and we'd have to get deep inside `couch_index_server` to do that, I think. We could bump up the populate_db to 1000 or 10000 documents as a workaround. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
