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

_configsvrRemoveShard must wait for majority before returning

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-01-10, Sharding EMEA 2022-01-24
    • 138

      The _configsvrRemoveShard command must wait for majority before returning in order to ensure causal consistency.

      It should be enough to add the following code at the end of the command:

      repl::ReplClientInfo::forClient(opCtx->getClient()).setLastOpToSystemLastOpTime(opCtx);
      

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

              Created:
              Updated:
              Resolved: