Java Driver
  1. Java Driver
  2. JAVA-276

findAndModify does not throw MongoException on error, fails silently

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major - P3 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:
      false

      Description

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

        Activity

        Hide
        Antoine Girbal
        added a comment -

        done and added test

        Show
        Antoine Girbal
        added a comment - done and added test
        Hide
        auto
        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
        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
        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
        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 Girbal
            Reporter:
            Antoine Girbal
            Participants:
            Last commenter:
            Barrie Segal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              3 years, 6 weeks, 1 day ago
              Date of 1st Reply: