view has the wrong signature
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
## Description
On one node (db-2.example.com) we catch error logs
> [error] 2024-02-26T19:53:42.735715Z couchdb@db-2.example.com <0.21142.1038> -------- ./data/.shards/e0000000-ffffffff/account/a1/15/78067a1db9f83fa4da53f6bacc16.1663539188_design/mrview/fa7a1a9e5db7f6873529299ea929daad.view has the wrong signature: expected: <<250,122,26,158,93,183,246,135,53,41,41,158,169,41,218,173>> but got <<87,225,55,84,101,143,50,221,45,61,42,165,141,102,202,177>>
[error] 2024-02-26T19:54:07.738902Z couchdb@db-2.example.com <0.22173.1076> -------- ./data/.shards/40000000-5fffffff/account/a1/15/78067a1db9f83fa4da53f6bacc16.1663539188_design/mrview/fa7a1a9e5db7f6873529299ea929daad.view has the wrong signature: expected: <<250,122,26,158,93,183,246,135,53,41,41,158,169,41,218,173>> but got <<87,225,55,84,101,143,50,221,45,61,42,165,141,102,202,177>>
Then it triggers CPU usage and is not responsible CouchDB 3 nodes cluster.
In logs present messages like
fabric_worker_timeout get_db_info
> [error] 2024-02-26T20:00:39.603653Z couchdb@db-2.example.com <0.26790.1086> 182b91a95a fabric_worker_timeout get_db_info,'couchdb@db-0.example.com',<<"shards/20000000-3fffffff/account/56/3b/1e36302175513343e6a13f6a1372-202308.1690848013">>
fabric_worker_timeout open_doc
> [error] 2024-02-26T20:00:40.479851Z couchdb@db-2.example.com <0.2074.1115> -------- fabric_worker_timeout open_doc,'couchdb@db-2.example.com',<<"shards/40000000-5fffffff/account/e3/2d/d743a02e6ee4e28f02755e070d33.1685539862">>
fabric_worker_timeout open_doc
> [error] 2024-02-26T20:00:45.480715Z couchdb@db-2.example.com <0.26670.936> a6eca4ce74 fabric_worker_timeout open_doc,'couchdb@db-1.example.com',<<"shards/40000000-5fffffff/account/e3/2d/d743a02e6ee4e28f02755e070d33.1685539862">>
## Steps to Reproduce
Not known.
## Expected Behaviour
Error in the one view should not stop functionality of 3 nodes cluster.
## Your Environment
* CouchDB version used: 3.3.2
* Browser name and version: browser do not used
* Operating system and version: CentOS 8
## Additional Context
Used `apache/couchdb:3.3.2` docker container.
Contributor guide
Research direction
Start by reviewing the reported wrong-signature errors and the related fabric_worker_timeout messages for get_db_info and open_doc in the CouchDB 3.3.2 Docker environment. Investigate how one failed view affects the three-node cluster; done means reproducing or isolating the failure and showing that one view error no longer stops cluster functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang
- Domain
- database, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100