kingofsystem opened a new issue, #4439:
URL: https://github.com/apache/couchdb/issues/4439
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^
)
"OS process timed out" error when trying to open big view. View size is
hundreds of thousands documents and almost 400mb on disc.
[NOTE]: # ( Describe the problem you're encountering. )
[TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! )
## Steps to Reproduce
1. upload big amount of data to some database
2. create view for this database
3. provide simple map function:
```
function (doc) {
emit(doc._id, 1);
}
```
5. save view and wait for index to build
6. try to open the view
7. get the "OS process timed out" error
[NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
## Expected Behaviour
view just opens
[NOTE]: # ( Tell us what you expected to happen. )
## Your Environment
[TIP]: # ( Include as many relevant details about your environment as
possible. )
[TIP]: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here.
)
```
{
"couchdb": "Welcome",
"version": "3.2.1",
"git_sha": "244d428af",
"uuid": "6c8c861378cadc7a55a1e3565a456dc8",
"features":
[
"access-ready",
"partitioned",
"pluggable-storage-engines",
"reshard",
"scheduler"
],
"vendor":
{
"name": "The Apache Software Foundation"
}
}
```
* Firefox 110.0
* couchDB runs on Ubuntu 20.04, kernel is 5.4.0-139-generic
## Additional Context
Related logs:
```
[info] 2023-02-22T11:42:38.082498Z nonode@nohost <0.286.0> --------
couch_proc_manager <0.1161.25> died normal
[error] 2023-02-22T11:42:38.082591Z nonode@nohost <0.1112.25> -------- OS
Process Error <0.1161.25> :: {os_process_error,"OS process timed out."}
[error] 2023-02-22T11:42:38.084320Z nonode@nohost <0.1100.25> 48dd004b0d
rexi_server: from: nonode@nohost(<0.480.25>) mfa: fabric_rpc:map_view/5
throw:{os_process_error,"OS process timed out."}
[{couch_mrview_util,get_view_index_state,5,[{file,"src/couch_mrview_util.erl"},{line,138}]},{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,82}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,262}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,141}]}]
[error] 2023-02-22T11:42:38.084764Z nonode@nohost emulator -------- Error in
process <0.1112.25> with exit value:
{{nocatch,{os_process_error,"OS process timed
out."}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,68}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,165}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,172}]}]}
[error] 2023-02-22T11:42:38.085516Z nonode@nohost emulator -------- Error in
process <0.1112.25> with exit value:
{{nocatch,{os_process_error,"OS process timed
out."}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,68}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,165}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,172}]}]}
[error] 2023-02-22T11:42:38.086140Z nonode@nohost <0.480.25> 48dd004b0d
req_err(157986948) os_process_error : OS process timed out.
[<<"couch_mrview_util:get_view_index_state/5
L138">>,<<"couch_mrview_util:get_view/4 L82">>,<<"couch_mrview:query_view/6
L262">>,<<"rexi_server:init_p/3 L141">>]
[notice] 2023-02-22T11:42:38.087003Z nonode@nohost <0.480.25> 48dd004b0d
10.20.208.57:25984 10.31.32.38 admin GET
/nvd/_design/test_view/_view/new-view?reduce=false&skip=0&limit=21 500 ok 24777
```
I already tried increase os_process_timeout but it didn't affect anything.
[TIP]: # ( Add any other context about the problem here. )
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]