elistevens opened a new issue #544: "Reduce output must shrink more rapidly" 
misrepresents which view is problematic
URL: https://github.com/apache/couchdb/issues/544
 
 
   When multiple views exist in the same design document, CouchDB 2.0 does not 
distinguish between the view being queried at the time and the view causing an 
error in the logged error messages.
   
   ## Expected Behavior
   
   CouchDB should specify which view resulted in the error.
   
   ## Current Behavior
   ```
   [info] 2017-05-25T19:15:38.649223Z couchdb@localhost <0.17653.11> -------- 
Starting index update for db: shards/a0000000-bfffffff/m3d_request.1495739240 
idx: _design/mms.worker.request
   [info] 2017-05-25T19:15:41.226488Z couchdb@localhost <0.16513.11> -------- 
OS Process #Port<0.18751> Log :: function raised exception (new 
TypeError("doc.state.fractionGroup_info is undefined", "undefined", 5)) with 
doc._id started_2013-04-29_12.07.28.801694_a5e86414c252c36ceb68b7aacedc9eda
   [error] 2017-05-25T19:15:41.652864Z couchdb@localhost <0.23076.11> -------- 
OS Process Error <0.16513.11> :: {<<"reduce_overflow_error">>,<<"Reduce output 
must shrink more rapidly: Current output: 
'[{\"linacTpsRequest_cid\":\"linac_tps_2015-03-13_14.46.37.287005_185313df929b11bd40cbdee210cff04a\",\"lin'...
 (first 100 of 441 bytes)">>}
   [error] 2017-05-25T19:15:41.653329Z couchdb@localhost emulator -------- 
Error in process <0.23076.11> on node couchdb@localhost with exit value:
   {{nocatch,{<<"reduce_overflow_error">>,<<"Reduce output must shrink more 
rapidly: Current output: 
'[{\"linacTpsRequest_cid\":\"linac_tps_2015-03-13_14.46.37.287005_185313df929b11bd40cbdee210cff04a\",\"lin'...
 (first 100 of 441 
bytes)">>}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,proc_prompt,2,[{file,"src/couch_query_servers.erl"},{line,427}]},{couch_query_servers,os_rereduce,3,[{file,"src/couch_query_servers.erl"},{line,135}]},{lists,zipwith,3,[{file,"lists.erl"},{line,450}]},{couch_query_servers,rereduce,3,[{file,"src/couch_query_servers.erl"},{line,93}]},{couch_mrview_util,'-make_reduce_fun/2-fun-1-',4,[{file,"src/couch_mrview_util.erl"},{line,1011}]},{couch_btree,'-write_node/3-lc$^0/1-0-',5,[{file,"src/couch_btree.erl"},{line,435}]},{couch_btree,'-write_node/3-lc$^0/1-0-',5,[{file,"src/couch_btree.erl"},{line,438}]}]}
   
   [error] 2017-05-25T19:15:41.653424Z couchdb@localhost <0.23095.11> 
6aa615c490 rexi_server throw:{<<"reduce_overflow_error">>,<<"Reduce output must 
shrink more rapidly: Current output: 
'[{\"linacTpsRequest_cid\":\"linac_tps_2015-03-13_14.46.37.287005_185313df929b11bd40cbdee210cff04a\",\"lin'...
 (first 100 of 441 bytes)">>} 
[{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,56}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,244}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
   [notice] 2017-05-25T19:15:41.653758Z couchdb@localhost <0.22178.11> 
6aa615c490 localhost:5984 127.0.0.1 undefined GET 
/m3d_request/_design/mms.worker.request/_view/RequestKnownDbsQuery?reduce=true&group_level=2
 500 ok 3008
   ```
   
   ## Steps to Reproduce (for bugs)
   
   I have not verified the following manually, but:
   - Create a design doc with two views, one normal with a sane reduce, and one 
with a reduce that just returns a 1kb string of text.
   - Query the first view, get an error.
   - The error should indicate that the problem is with the second view, but it 
currently does not.
   
   ## Context
   
   I have design docs with ~15 views in some cases, and now I have to hunt 
through the code to find one that has a reduce that might output something 
matching:
   
   
`'[{"linacTpsRequest_cid":"linac_tps_2015-03-13_14.46.37.287005_185313df929b11bd40cbdee210cff04a","lin'...
 (first 100 of 441 bytes)`
   
 
----------------------------------------------------------------
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

Reply via email to