Create initial chunk on primaryShard if only writing one chunk

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.6, 4.0.1, 4.1.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Sharding 2018-06-18, Sharding 2018-07-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, if we're only writing one chunk when creating a newly sharded collection we create it on any shard. We should create this on the primaryShard because during M/R, if creating a new sharded output collection we'll create the new collection on the primary shard with UUID X, but then write the initial chunk to possibly a different shard with UUID Y.

            Assignee:
            Janna Golden
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: