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

XMLWordPrintableJSON

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

       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:
            [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: