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

DDL coordinator handle write concern error incorrectly when removing coordinator document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.3.0, 5.0.6, 5.2.1
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.2, v5.0
    • Sharding EMEA 2021-11-01, Sharding EMEA 2021-11-15, Sharding EMEA 2021-11-29, Sharding EMEA 2021-12-13, Sharding EMEA 2021-12-27, Sharding EMEA 2022-01-10, Sharding EMEA 2022-01-24
    • 17

    Description

      If a write concern error occurs when trying to remove the coordinator document the primary only service cleanup is not being executed, leaving the shard with a DDL coordinator service that will always return an error, even if the operation could be retried and the document could be removed successfully later on, this might be happening because it is not being considered that the _removeDocument function might throw.

      You can find a reproducible attached.

      Attachments

        1. bf_21905_reproducible.patch
          2 kB
        2. reproducible.js
          0.6 kB

        Activity

          People

            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: