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

Router must take into account drop collection write concern error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.1, v8.0, v7.0, v6.0
    • 0
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When the primary shard returns ok:1 to the router upon a drop collection command, due to SERVER-97754 it is guaranteed that the drop has been majority acknowledged.

      However - since the DDL coordinator writes using a separate operation context - when the shard command returns it waits for the last op time to get majority committed (SERVER-102024). The last op time may be ahead of the drop op time.

      It follows that - when the additional wait fails - a write concern error gets attached to the reply even though the drop succeeded and was majority committed. When that happens, the router will fail to parse the shard reply because the DropReply does not include a writeConcernError field.

      SERVER-103506 should solve the problem for all command replies. But we should provide a temporary solution as long as the generic fix is not in.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: