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

error: function_clause, couch_btree:fold inside of compaction process #1362

Open
wohali opened this issue May 31, 2018 · 0 comments
Open

error: function_clause, couch_btree:fold inside of compaction process #1362

wohali opened this issue May 31, 2018 · 0 comments
Labels

Comments

@wohali
Copy link
Member

wohali commented May 31, 2018

Under heavy load and insufficient CPU, a 3-node cluster produced a large number of function_clause errors. This is one of these errors.

{function_clause,[{couch_btree,fold,[undefined,#Fun<couch_db.40.89963714>,[],[{start_key,<<"_design/">>},{end_key_gt,<<"_design0">>}]],[{file,"src/couch_btree.erl"},{line,211}]},{couch_db,enum_docs,5,[{file,"src/couch_db.erl"},{line,1284}]},{couch_compaction_daemon,db_ddoc_names,1,[{file,"src/couch_compaction_daemon.erl"},{line,239}]},{couch_compaction_daemon,maybe_compact_db,3,[{file,"src/couch_compaction_daemon.erl"},{line,163}]},{couch_compaction_daemon,'-compact_loop/1-fun-0-',3,[{file,"src/couch_compaction_daemon.erl"},{line,141}]},{couch_server,'-all_databases/2-fun-0-',4,[{file,"src/couch_server.erl"},{line,273}]},{filelib,do_fold_files2,8,[{file,"filelib.erl"},{line,185}]},{filelib,do_fold_files2,8,[{file,"filelib.erl"},{line,195}]}]}
[error] 2018-05-28T03:07:54.298000Z couchdb@node1 <0.3283.3747> -------- gen_server couch_compaction_daemon terminated with reason: {compaction_loop_died,{function_clause,[{couch_btree,fold,[undefined,#Fun<couch_db.40.89963714>,[],[{start_key,<<"_design/">>},{end_key_gt,<<"_design0">>}]],[{file,"src/couch_btree.erl"},{line,211}]},{couch_db,enum_docs,5,[{file,"src/couch_db.erl"},{line,1284}]},{couch_compaction_daemon,db_ddoc_names,1,[{file,"src/couch_compaction_daemon.erl"},{line,239}]},{couch_compaction_daemon,maybe_compact_db,3,[{file,"src/couch_compaction_daemon.erl"},{line,163}]},{couch_compaction_daemon,'-compact_loop/1-fun-0-',...},...]}}
[error] 2018-05-28T03:07:54.298000Z couchdb@node1 <0.3283.3747> -------- CRASH REPORT Process couch_compaction_daemon (<0.3283.3747>) with 0 neighbors exited with reason: {compaction_loop_died,{function_clause,[{couch_btree,fold,[undefined,#Fun<couch_db.40.89963714>,[],[{start_key,<<"_design/">>},{end_key_gt,<<"_design0">>}]],[{file,"src/couch_btree.erl"},{line,211}]},{couch_db,enum_docs,5,[{file,"src/couch_db.erl"},{line,1284}]},{couch_compaction_daemon,db_ddoc_names,1,[{file,"src/couch_compaction_daemon.erl"},{line,239}]},{couch_compaction_daemon,maybe_compact_db,3,[{file,"src/couch_compaction_daemon.erl"},{line,163}]},{couch_compaction_daemon,'-compact_loop/1-fun-0-',...},...]}} at gen_server:terminate/7(line:826) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_compaction_daemon,init,['Argument__1']}, ancestors: [couch_secondary_services,couch_sup,<0.209.0>], messages: [], links: [<0.28626.3663>], dictionary: [], trap_exit: true, status: running, heap_size: 2586, stack_size: 27, reductions: 27257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant