Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-276

findAndModify does not throw MongoException on error, fails silently

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5, 2.5.1
    • Component/s: None
    • Labels:
      None
    • # Replies:
      3
    • Last comment by Customer:
      true

      Description

      right now it just returns res.get("value");
      it needs to call res.throwOnError() before.

        Activity

        Hide
        antoine Antoine Girbal (Inactive) added a comment -

        done and added test

        Show
        antoine Antoine Girbal (Inactive) added a comment - done and added test
        Hide
        auto auto (Inactive) added a comment -

        Author:

        {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

        Message: JAVA-276: findAndModify does not throw MongoException on error, fails silently
        https://github.com/mongodb/mongo-java-driver/commit/b1a588dbc33e2cd39177000d0b0df01955f26af1

        Show
        auto auto (Inactive) added a comment - Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'} Message: JAVA-276 : findAndModify does not throw MongoException on error, fails silently https://github.com/mongodb/mongo-java-driver/commit/b1a588dbc33e2cd39177000d0b0df01955f26af1
        Hide
        auto auto (Inactive) added a comment -

        Author:

        {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

        Message: JAVA-276: findAndModify should eat error on no matched doc, until server is fixed
        https://github.com/mongodb/mongo-java-driver/commit/496d32627310bbfd4144fef8652c6ceacdaed39d

        Show
        auto auto (Inactive) added a comment - Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'} Message: JAVA-276 : findAndModify should eat error on no matched doc, until server is fixed https://github.com/mongodb/mongo-java-driver/commit/496d32627310bbfd4144fef8652c6ceacdaed39d

          People

          • Assignee:
            antoine Antoine Girbal (Inactive)
            Reporter:
            antoine Antoine Girbal (Inactive)
            Participants:
            Last commenter:
            Barrie Segal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              4 years, 20 weeks, 3 days ago
              Date of 1st Reply: