[
https://issues.apache.org/jira/browse/COUCHDB-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231120#comment-13231120
]
Vladimir Petrukhin commented on COUCHDB-1443:
---------------------------------------------
If i use "PUT" and generate ID by himself I get
{"error":"conflict","reason":"Document update conflict."}
It's impossible because I use single thread and many async sockets:
for (int docId = 0; docId < 15000; docId++) {
db.async().put(docId, new Doc());
}
> Duplicate documents on concurrent insert
> ----------------------------------------
>
> Key: COUCHDB-1443
> URL: https://issues.apache.org/jira/browse/COUCHDB-1443
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core
> Affects Versions: 1.1.1
> Reporter: Vladimir Petrukhin
>
> I started 15000 parallel connections to CouchDb and writing 1 doc per
> connection. I expected 15000 docs in CouchDb. But I get 15008 or 15014 or etc.
> I found that docs has different ids, but same content and revision.
> I use simple POST method to insert the docs. Not in batch mode.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira