_configsvrRemoveShard must wait for majority before returning

XMLWordPrintableJSON

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

      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
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: