[CDRIVER-176] data loss while writing concurrently Created: 31/Oct/12 Updated: 21/Nov/13 Resolved: 21/Nov/13 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.6 |
| Fix Version/s: | 0.90.0 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | shun.zhang | Assignee: | Christian Hergert |
| Resolution: | Done | Votes: | 1 |
| Labels: | cdriver,, gridfs | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
#uname -a #lsb_release -a |
||
| Description |
|
this is my testcase - https://gist.github.com/3987628 while one process, it works all right |
| Comments |
| Comment by Christian Hergert [ 21/Nov/13 ] |
|
This is fixed in the new C driver, which will be released very soon. The new C driver uses libbson[1], which does not suffer from this deficiency. If you would like to try the new C driver ahead of the release, you can check out my tree here[2]. [1] https://github.com/mongodb/libbson |
| Comment by bishwa shrestha [ 27/Feb/13 ] |
|
we are also using mongodb-c-driver v0.6. would be nice to have this fix in. Thanks |
| Comment by shun.zhang [ 01/Nov/12 ] |
|
here is pull request |
| Comment by shun.zhang [ 01/Nov/12 ] |
|
I found the reason, that's an ugly implemtation of "ObjectId generator" which does not match the specification http://www.mongodb.org/display/DOCS/ObjectId I'll commit a patch to fix the bug. |
| Comment by shun.zhang [ 01/Nov/12 ] |
|
mongo-python-driver works well, https://gist.github.com/3992535 |