[SERVER-17211] update_upsert_multi.js failing when run through fsm_all_sharded Created: 06/Feb/15  Updated: 02/Aug/18  Resolved: 09/Jun/15

Status: Closed
Project: Core Server
Component/s: Sharding, Testing Infrastructure
Affects Version/s: 3.1.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

The test fails with

Error: 10 threads threw 10 different exceptions:

Each of which are something like this:

1 thread threw
        Error: [1] != [0] are not equal : {
            "query" : {
                "tid" : 0,
                "i" : 0
            },
            "update" : {
                "$inc" : {
                    "n" : 1
                }
            },
            "options" : {
                "multi" : true,
                "upsert" : true
            },
            "result" : {
                "nMatched" : 0,
                "nUpserted" : 0,
                "writeError" : {
                    "code" : 61,
                    "errmsg" : "upsert { q: { tid: 0.0, i: 0.0 }, u: { $inc: { n: 1.0 } }, multi: true, upsert: true } does not contain shard key for pattern { _id: \"hashed\" }"
                }
            }
        }
            at quietlyDoAssert (jstests/concurrency/fsm_libs/assert.js:53:15)
            at Function.assert.eq (src/mongo/shell/assert.js:38:5)
            at wrapAssertFn (jstests/concurrency/fsm_libs/assert.js:60:16)
            at Function.assertWithLevel.(anonymous function) [as eq] (jstests/concurrency/fsm_libs/assert.js:99:13)
            at Object.insert (jstests/concurrency/fsm_workloads/update_upsert_multi.js:24:31)
            at Object.runFSM [as run] (jstests/concurrency/fsm_libs/fsm.js:19:16)
            at <anonymous>:8:13
            at Object.main (jstests/concurrency/fsm_libs/worker_thread.js:79:17)
            at ____MongoToV8_newFunction_temp (<anonymous>:5:25)
            at ____MongoToV8_newFunction_temp (<anonymous>:3:24)


Generated at Thu Feb 08 03:43:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.