GitHub user mikewallace1979 opened a pull request:
https://github.com/apache/couchdb-couch/pull/31
Add a configurable timeout for get_proc calls
Previously the gen_server calls to couch_proc_manager/get_proc
used a timeout of infinity. There are multiple places in the
couch_proc_manager code path where that process can die without
replying. With an infinity timeout the couch_query_server process
would then hang around forever.
This commit makes the gen_server call to get_proc use a configurable
timeout, set by the couchdb/get_proc_timeout config variable. It
defaults to 60000ms.
Closes:
COUCHDB-2425
COUCHDB-2426
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mikewallace1979/couchdb-couch
2425-fix-dangling-couch_query_server-procs
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/31.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #31
----
commit c6f3aafd32fe9b3ddfa93634d0a27fb51017db93
Author: Mike Wallace <[email protected]>
Date: 2015-01-14T18:39:44Z
Add a configurable timeout for get_proc calls
Previously the gen_server calls to couch_proc_manager/get_proc
used a timeout of infinity. There are multiple places in the
couch_proc_manager code path where that process can die without
replying. With an infinity timeout the couch_query_server process
would then hang around forever.
This commit makes the gen_server call to get_proc use a configurable
timeout, set by the couchdb/get_proc_timeout config variable. It
defaults to 60000ms.
Closes:
COUCHDB-2425
COUCHDB-2426
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---