-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: WiredTiger
-
Environment:Ubuntu 14.04 3.16.0-43 64bit, 16GB RAM, i5-4690 CPU @ 3.50GHz
-
Linux
-
I'm basically upserting documents that has random sid 1..100, and then update the hit counter on them.
So the document looks like that:
{ 'sid': 23, 'status': 'active' 'hit': 12 }A timer changes the status field from 'active' to something else occasionally.
That program runs successfully on mongodb 3.0.4 with MMAPv1 engine, but throws E11000 errors with wiredtiger.
javascript code to replicate:
https://github.com/yurynix/mongodb-upsert-test
It's a reduced case of my more complicated python code (pymongo 3.0.3), which has the same problem.
expected result:
https://github.com/yurynix/mongodb-upsert-test/blob/master/expected.txt
(thats the result with the default engine)
actual result:
https://github.com/yurynix/mongodb-upsert-test/blob/master/actual.txt
Best regards,
Yury.
- duplicates
-
SERVER-14322 Retry on predicate unique index violations of update + upsert -> insert when possible
- Closed
- is duplicated by
-
SERVER-19920 Duplicate Key Error on Upsert with multi processes
- Closed