Drop the collection after removing the partially written chunks for mapReduce in mongos_manual_intervention_actions.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.9, 4.0.2, 4.1.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • 35
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As of SERVER-33538, we no longer allow mapReduce to be called with an existing unsharded output collection. If the shardCollection command fails (due to a stepdown, etc.) on the first attempt of mapReduce, the collection will be created but not sharded so we will fail the command entirely. We should drop the collection in addition to cleaning up the partially written chunks in the case of shardCollection failing during mapReduce.

            Assignee:
            Cheahuychou Mao
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: