On Nov 9, 2011, at 7:13 AM, CGS wrote:
b) the second time not quite ok, returning the same id's and rev's + the
same test1 document (step discarded by bulk, getting the first bulk
operation result instead of incrementing the revision or reporting
conflict);
You’re using all-or-nothing mode, which never returns 409 Conflict errors but instead creates conflicting revisions in the db. Did you read about how it works?
http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Transactional_Semantics_with_Bulk_Updates
—Jens