Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EUnit couchdb_views_tests failure: suspend_process after termination #643

Closed
wohali opened this issue Jul 5, 2017 · 3 comments
Closed
Milestone

Comments

@wohali
Copy link
Member

wohali commented Jul 5, 2017

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|start|enter_loop, 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.

@wohali wohali added this to the 2.1.0 milestone Jul 5, 2017
@wohali
Copy link
Member Author

wohali commented Jul 5, 2017

Another instance:

@wohali
Copy link
Member Author

wohali commented Jul 8, 2017

I believe these are being caused by #652.

@wohali
Copy link
Member Author

wohali commented Jul 8, 2017

Closing because PR#654 landed. Will reopen if it recurs.

@wohali wohali closed this as completed Jul 8, 2017
lag-linaro pushed a commit to lag-linaro/couchdb that referenced this issue Oct 25, 2018
nickva pushed a commit to nickva/couchdb that referenced this issue Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant