Timeout when making query while purging
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
I have tried to make a query during a purge of many documents from the database and I get the following timeout error:
`Error running query. Reason: (timeout) The request could not be processed in a reasonable amount of time.`
And the following couchdb log error:
`
[error] 2022-10-03T15:25:47.790110Z couchdb@127.0.0.1 <0.27022.0> aa85e646df fabric_worker_timeout map_view,'couchdb@127.0.0.1',<<"shards/00000000-7fffffff/database.1664801850">>`
It catches my attention since I am querying a partition whose documents are not included in the purge. That is, I am purging documents from partition2 and querying a view on partition1 using the `get_partitioned_view_result` method.
What is the cause of the error? Is it not possible to perform queries while documents are being purged? Is it due to couchdb configuration?
Contributor guide
Research direction
Start by reproducing a query with get_partitioned_view_result on partition1 while purging many documents from partition2, then review the reported fabric_worker_timeout log entry. Check the CouchDB configuration and query/purge behavior to determine the cause and whether concurrent queries are supported; done means documenting the explanation and any relevant configuration or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100