Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-176

data loss while writing concurrently

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.90.0
    • Component/s: None
    • Labels:
    • Environment:
    • Operating System:
      Linux
    • # Replies:
      5
    • Last comment by Customer:
      true
    • Sprint:
      Sprint 1

      Description

      this is my testcase - https://gist.github.com/3987628

      while one process, it works all right
      while two process, it will lose half the data

        Activity

        Hide
        aaashun shun.zhang added a comment -

        mongo-python-driver works well, https://gist.github.com/3992535

        Show
        aaashun shun.zhang added a comment - mongo-python-driver works well, https://gist.github.com/3992535
        Hide
        aaashun shun.zhang added a comment -

        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.

        Show
        aaashun shun.zhang added a comment - 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.
        Hide
        aaashun shun.zhang added a comment -
        Show
        aaashun shun.zhang added a comment - here is pull request https://github.com/mongodb/mongo-c-driver/pull/55/files
        Hide
        awsiv bishwa shrestha added a comment -

        we are also using mongodb-c-driver v0.6. would be nice to have this fix in.

        Thanks

        Show
        awsiv bishwa shrestha added a comment - we are also using mongodb-c-driver v0.6. would be nice to have this fix in. Thanks
        Hide
        christian.hergert@10gen.com Christian Hergert (Inactive) added a comment -

        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
        [2] https://github.com/chergert/libmongoc

        Show
        christian.hergert@10gen.com Christian Hergert (Inactive) added a comment - 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 [2] https://github.com/chergert/libmongoc

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 31 weeks, 6 days ago
              Date of 1st Reply:

              Agile