Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10953

mongos returns error to GLE after successful write when there was wassert on mongod

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.6, 2.5.2
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      Send an insert to mongos at a time when mongod will have 'wassert' at the time of the write (nonetheless writing the document successfully). Sending getlasterror to mongos now causes it to return error when the write was successful. It appears that mongos goes by 'err' field from shard being populated and doesn't check the 'code' field (around https://github.com/mongodb/mongo/blame/master/src/mongo/s/strategy_shard.cpp#L686 ) so now most (all?) drivers report failure to the client.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: