couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <>
Subject [jira] Assigned: (COUCHDB-434) 500 error when working with deleted bulk docs
Date Wed, 29 Jul 2009 01:25:14 GMT


Chris Anderson reassigned COUCHDB-434:

    Assignee: Damien Katz

I've looked into the bug and it seems for some reason _deleted docs aren't coming back in
the IdRevs ++ CommitResults ++ PreCommitFailures result set for some reason.

In couch_db:update_docs(Db, Docs, Options, interactive_edit), the call to dict:find currently
only matches {ok, Result}

For some reason this test makes dict:find return the atom error instead of {ok, Result} (eg
the dict doesn't have the key).

I'm guessing it's to do with deterministic revs and deletion.

Assigning to Damien.

> 500 error when working with deleted bulk docs
> ---------------------------------------------
>                 Key: COUCHDB-434
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Mark Hammond
>            Assignee: Damien Katz
>         Attachments: bulk_save_500.patch, bulk_save_500.patch
> When upgrading our app from 0.9 to trunk, I encountered a 500 error attempting to update
previously deleted documents.  I've hacked together a patch to the test suite which demonstrates
an almost identical error, but note:
> * The test code is misplaced due to that test otherwise failing for me when attempting
to compact.  It should go either at the end of the test, or into its own test.
> * As the comments note, the attempt to delete the documents appears to fail with conflict
errors - which it probably shouldn't.
> * If you ignore these conflicts (as the test does), the next attempt to 'resurrect' these
docs causes a 500 error with a badmatch exception.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message