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

No chunk splits when using findAndModify() to upsert

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: 1.8.4, 2.0.1, 2.0.2, 2.0.3
    • Component/s: Sharding
    • None
    • ALL

      Doing upserts on a sharded collection via a findAndModify will not initiate chunk splits (and subsequent balancing).

      I've attached a javascript file that shows the correct behavior for a regular upsert and reproduces the bug behavior for a findAndModify upsert.

      Before running, please start a sharded cluster using the mongo snippet with chunksize=1 or increase n.

            Assignee:
            brandon Brandon Diamond
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: