wohali commented on issue #674: Flaky compaction daemon test
URL: https://github.com/apache/couchdb/issues/674#issuecomment-315185827
 
 
   OK looked at a couch.log. We have a race where the compaction daemon 
finishes compacting the test DB, then immediately starts compacting it 
**again**, so our check for the db to be idle fails.
   
   What I don't know is if that's a legitimate attempt to re-compact (because 
it is still too fragmented) or if the compaction daemon is attempting to 
re-compact based on old data about the state of the DB in question.
   
   ```
   [info] 2017-06-16T18:49:25.122688Z nonode@nohost <0.13883.1> -------- 
Starting compaction for db "eunit-test-db-1497638926674066"
   [notice] 2017-06-16T18:49:25.383106Z nonode@nohost <0.13883.1> -------- 
Compaction swap for db: 
/home/travis/build/apache/couchdb/tmp/data/eunit-test-db-1497638926674066.couch 
1646789 53445
   [info] 2017-06-16T18:49:25.386118Z nonode@nohost <0.13883.1> -------- 
Compaction for db "eunit-test-db-1497638926674066" completed.
   [info] 2017-06-16T18:49:25.390952Z nonode@nohost <0.16501.1> -------- 
Compaction started for db: eunit-test-db-1497638926674066 idx: _design/foo
   [notice] 2017-06-16T18:49:25.434478Z nonode@nohost <0.13891.1> -------- 
Compaction swap for view 
/home/travis/build/apache/couchdb/tmp/data/.eunit-test-db-1497638926674066_design/mrview/ee2c720a13443ab1d50210242730ca31.view
 391267 28800
   [notice] 2017-06-16T18:49:25.443473Z nonode@nohost <0.13662.1> -------- 
config: [compactions] _default deleted for reason nil
   [info] 2017-06-16T18:49:25.443559Z nonode@nohost <0.16501.1> -------- 
Compaction finished for db: eunit-test-db-1497638926674066 idx: _design/foo
   [error] 2017-06-16T18:49:25.472035Z nonode@nohost <0.13891.1> -------- 
gen_server <0.13891.1> terminated with reason: no such process or port in call 
to gen_server:call(<0.16503.1>, close, infinity)
     last msg: {'$gen_cast',delete}
        state: 
{st,couch_mrview_index,{mrst,<<238,44,114,10,19,68,58,177,213,2,16,36,39,48,202,49>>,<0.16503.1>,#Ref<0.0.6.37429>,<<"eunit-test-db-1497638926674066">>,<<"_design/foo">>,<<"javascript">>,[],false,false,{[]},[{mrview,0,0,0,[<<"foo3">>,<<"foo2">>,<<"foo">>],[],<<"function(doc)
 { emit(doc._id, doc); 
}">>,{btree,<0.16503.1>,{26184,{400,[]},18346},undefined,undefined,#Fun<couch_ejson_compare.less_json_ids.2>,#Fun<couch_mrview_util.17.14385612>,snappy},nil,nil,false,false,[]}],{btree,<0.16503.1>,{7946,[],7997},undefined,undefined,undefined,nil,snappy},nil,401,0,undefined,undefined,undefined,undefined,undefined,nil},<0.13894.1>,<0.13895.1>,[],false,false}
   [error] 2017-06-16T18:49:25.475163Z nonode@nohost <0.13891.1> -------- CRASH 
REPORT Process  (<0.13891.1>) with 0 neighbors exited with reason: no such 
process or port in call to gen_server:call(<0.16503.1>, close, infinity) at 
gen_server:terminate/6(line:722) <= proc_lib:init_p_do_apply/3(line:239); 
initial_call: {couch_index,init,['Argument__1']}, ancestors: [<0.13890.1>], 
messages: [], links: [<0.13894.1>,<0.13895.1>,<0.13861.1>], dictionary: [], 
trap_exit: false, status: running, heap_size: 2586, stack_size: 27, reductions: 
31341
   [error] 2017-06-16T18:49:25.476680Z nonode@nohost <0.13895.1> -------- 
gen_server <0.13895.1> terminated with reason: no such process or port in call 
to gen_server:call(<0.16503.1>, close, infinity)
     last msg: 
{'EXIT',<0.13891.1>,{noproc,{gen_server,call,[<0.16503.1>,close,infinity]}}}
        state: {st,<0.13891.1>,couch_mrview_index,undefined}
   [error] 2017-06-16T18:49:25.477461Z nonode@nohost <0.13895.1> -------- CRASH 
REPORT Process  (<0.13895.1>) with 0 neighbors exited with reason: no such 
process or port in call to gen_server:call(<0.16503.1>, close, infinity) at 
gen_server:terminate/6(line:744) <= proc_lib:init_p_do_apply/3(line:239); 
initial_call: {couch_index_compactor,init,['Argument__1']}, ancestors: 
[<0.13891.1>,<0.13890.1>], messages: [], links: [], dictionary: [], trap_exit: 
true, status: running, heap_size: 610, stack_size: 27, reductions: 194
   [error] 2017-06-16T18:49:25.478441Z nonode@nohost <0.13894.1> -------- 
gen_server <0.13894.1> terminated with reason: no such process or port in call 
to gen_server:call(<0.16503.1>, close, infinity)
     last msg: 
{'EXIT',<0.13891.1>,{noproc,{gen_server,call,[<0.16503.1>,close,infinity]}}}
        state: {st,<0.13891.1>,couch_mrview_index,undefined}
   [error] 2017-06-16T18:49:25.479197Z nonode@nohost <0.13894.1> -------- CRASH 
REPORT Process  (<0.13894.1>) with 0 neighbors exited with reason: no such 
process or port in call to gen_server:call(<0.16503.1>, close, infinity) at 
gen_server:terminate/6(line:744) <= proc_lib:init_p_do_apply/3(line:239); 
initial_call: {couch_index_updater,init,['Argument__1']}, ancestors: 
[<0.13891.1>,<0.13890.1>], messages: [], links: [], dictionary: [], trap_exit: 
true, status: running, heap_size: 1598, stack_size: 27, reductions: 596288
   [error] 2017-06-16T18:49:25.479677Z nonode@nohost <0.13861.1> -------- 
gen_server couch_index_server terminated with reason: no such process or port 
in call to gen_server:call(<0.16503.1>, close, infinity)
     last msg: 
{'EXIT',<0.13891.1>,{noproc,{gen_server,call,[<0.16503.1>,close,infinity]}}}
        state: {st,"/home/travis/build/apache/couchdb/tmp/data"}
   [error] 2017-06-16T18:49:25.480143Z nonode@nohost <0.13861.1> -------- CRASH 
REPORT Process couch_index_server (<0.13861.1>) with 1 neighbors exited with 
reason: no such process or port in call to gen_server:call(<0.16503.1>, close, 
infinity) at gen_server:terminate/6(line:744) <= 
proc_lib:init_p_do_apply/3(line:239); initial_call: 
{couch_index_server,init,['Argument__1']}, ancestors: 
[couch_secondary_services,couch_sup,<0.13815.1>], messages: [], links: 
[<0.13863.1>,<0.13824.1>], dictionary: [], trap_exit: true, status: running, 
heap_size: 1598, stack_size: 27, reductions: 4707
   [error] 2017-06-16T18:49:25.480593Z nonode@nohost <0.13824.1> -------- 
Supervisor couch_secondary_services had child index_server started with 
couch_index_server:start_link() at <0.13861.1> exit with reason no such process 
or port in call to gen_server:call(<0.16503.1>, close, infinity) in context 
child_terminated
   [error] 2017-06-16T18:49:25.502120Z nonode@nohost <0.13865.1> -------- 
gen_server couch_compaction_daemon terminated with reason: 
{not_mocked,couch_compaction_daemon} at meck_proc:gen_server/3(line:450) <= 
meck_code_gen:exec/4(line:147) <= gen_server:handle_msg/5(line:604) <= 
proc_lib:init_p_do_apply/3(line:239)
     last msg: {'EXIT',<0.13867.1>,killed}
        state: {state,<0.13867.1>,[]}
   [error] 2017-06-16T18:49:25.502762Z nonode@nohost <0.13865.1> -------- CRASH 
REPORT Process couch_compaction_daemon (<0.13865.1>) with 0 neighbors exited 
with reason: {not_mocked,couch_compaction_daemon} at 
meck_proc:gen_server/3(line:450) <= meck_code_gen:exec/4(line:147) <= 
gen_server:handle_msg/5(line:604) <= proc_lib:init_p_do_apply/3(line:239) at 
gen_server:terminate/6(line:744) <= proc_lib:init_p_do_apply/3(line:239); 
initial_call: {couch_compaction_daemon,init,['Argument__1']}, ancestors: 
[couch_secondary_services,couch_sup,<0.13815.1>], messages: [], links: 
[<0.13824.1>], dictionary: [], trap_exit: true, status: running, heap_size: 
1598, stack_size: 27, reductions: 1318
   [error] 2017-06-16T18:49:25.503149Z nonode@nohost <0.13824.1> -------- 
Supervisor couch_secondary_services had child compaction_daemon started with 
couch_compaction_daemon:start_link() at <0.13865.1> exit with reason 
{not_mocked,couch_compaction_daemon} at meck_proc:gen_server/3(line:450) <= 
meck_code_gen:exec/4(line:147) <= gen_server:handle_msg/5(line:604) <= 
proc_lib:init_p_do_apply/3(line:239) in context child_terminated
   ```
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to