Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Design documents cause insert failures #12

Closed
dalgibbard opened this issue Jan 21, 2015 · 0 comments
Closed

[BUG] - Design documents cause insert failures #12

dalgibbard opened this issue Jan 21, 2015 · 0 comments
Labels

Comments

@dalgibbard
Copy link
Collaborator

In a CouchDB Database which has _design documents defined (data restrictions, views etc), when exporting the JSON using ./couchdb-dump, these special document types are appended to the end of the JSON dump.
_bulk_docs can't handle these, so the last split file to be inserted fails for all documents contained within it.

The fix here is to break out all of the _design documents from the exported JSON when we want to restore the data, and handle these first.

NOTE: I have the fix for this already; i'll request a merge in a little while.

dalgibbard added a commit to dalgibbard/couchdb-dump that referenced this issue Jan 21, 2015
danielebailo added a commit that referenced this issue Jan 22, 2015
Handle '_design' elements (#12) and standardise whitespace
@dalgibbard dalgibbard added the bug label May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants