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

multi-batch update with {upsert: true} at index: 1 reports incorrect index in response

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding NYC

       cmdObj: {
                  update: collName,
                  updates: [
                      {q: {y: yFieldVal}, u: {y: yFieldVal + 1}},
                      {q: {y: 6}, u: {x: -1, _id: 6}, upsert: true}
                  ],
              }
      

      index is correctly set to 1 here, but rewritten here. Looks like targetedBatch.size == 1, and thus it is reading an out of bounds value at targetedBatch[1] (I confirmed childBatchIndex == 1). Moreover, I saw that targetBatch[0] = 1.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: