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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.9, 4.0.2, 4.1.1
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • 35

    Description

      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.

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: