Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#52240 - [couchdb] Version 2.0 not a drop-in replacement for 1.x

Attached to Project: Community Packages
Opened by Stefan Keller (lokutos) - Thursday, 22 December 2016, 14:32 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 23 December 2016, 10:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Version 2.0 of couchdb is not a drop-in replacement for 1.x. First, the API is not 100% compatible (indices are now strings, no temporary views anymore...). This means an application using it will often not work as-is (i.e. without code changes) with 2.0.
Second, and at least as important, CouchDB's data (under /var/lib/couchdb) is not compatible. The migration involves running two counchdb instances (one 1.x, one 2.0) and replicating each db from one instance to the other.
See e.g. https://blog.couchdb.org/2016/08/17/migrating-to-couchdb-2-0/ for some details.
In short: CouchDB 1.6 should have never been replaced with 2.0, as 2.0 is not a replacement. Rather, 2.0 shoudl have been made available as an additional package, either conflicting with 1.x or (preferable) installable along side. This would be the same as with other incompatible packages (such as Python 3.0 vs 2.x etc.)

Additional info:
* couchdb 2.0.0-4

Steps to reproduce:
Update to 2.0. Observe that all your DBs are gone (inaccessible). Also observe that some of your code no longer runs.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 23 December 2016, 10:22 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Thursday, 22 December 2016, 14:41 GMT
The "couchdb" package is, and should be, the latest version. There could be a couchdb1 package, but if nothing in the repos needs it, the AUR is a perfectly valid place for it.

Loading...