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

Write failed with error code 61 and error message 'upsert

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: None
    • None
    • ALL

      Hi:

      I'm used the shared Mongo with version 3.0.4.

      I got the error when i do the follow cmd :

      db.collection.update(query,update,true,true)

      error:

      com.mongodb.WriteConcernException: Write failed with error code 61 and error message 'upsert { q: { fileId: "8eabe793f2f24846a2c566f1cbc4d30d", keyword: "豹米空气净化大师", marketName: "360手机助手", displayName: "豹米空气净化大师", pageUrl: "http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师", downloadUrl: "http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk", md5: "d17a9303e2649653b71c1c8a77343dcd", realName: "豹米空气净化大师", version: "2.3.2" }, u: { $set: { publishDate: "2015-07-28", downloads: "1337", thumbPrint: "1005723193FBEE3F7EF38AE95896FF43", matchResult: "TRUE", updateDate: 1443168730167 } }, multi: true, upsert: true } does not contain shard key for pattern { _id: 1.0 }'
      

      more info plz see the attachment

            Assignee:
            Unassigned Unassigned
            Reporter:
            Andy.Z Andy.Z [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: