Open dianabarsan opened 3 days ago
I've replicated this locally, and found a fix. The cause is still unclear, and might need some serious networking debugging - finding which service causes view indexing query requests to hang. This was my initial guess as to what was happening.
I do have a simpler workaround that doesn't involve manually editing docs in the database.
I haven't replicated this in Couch 3, but for safe measure I will apply the change to latest CHT and test how indexing goes afterwards. Adding to 4.15.
Describe the bug View indexing involves a lot of recursive chained promises, that only resolve and update the state of the upgrade when indexing the views for the new version is finished. This process can become blocked in some cases. This seems to be an edge case and is not reliably reproducible. It also seems to affect CouchDb 2 (v4.2.2) and not later versions of the CHT.
To Reproduce Steps to reproduce the behavior:
Expected behavior Upgrades should happen smoothly.
Logs It looks like haproxy throws errors for some view indexing requests, but CouchDb never actually crashes.
Environment
Additional context Unfortunately, the workaround is manual and very technical and involves:
medic-logs
db.stage
, in case it wasupgrade
indexing
toindexed