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

Setting the cluster cardinality parameter may cause setFCV to fail on retry

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.6, 8.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-04-15, CAR Team 2024-04-29, CAR Team 2024-05-13
    • 12
    • 2

      On FCV upgrade, we are calling configsvrSetClusterParameter to update the cluster cardinality parameter. If there is a stepdown after this coordinator is spawned, then the setFCV command will be retried. When the retry happens, we will hit this condition which prevents downgrading when there is an ongoing setClusterParameter coordinator. (the attached bf is on 7.0, but the same sequence should be possible on master)

      One potential solution would be to do a best effort drain of setClusterParameter coordinators before acquiring the FCV lock. Another would be to investigate whether the check preventing setFCV while setClusterParameter is running needs to be enforced on FCV upgrade.

      The PR for introducing the check for ongoing coordinators has context on why this was implemented as an error rather than a drain within the setFCV command.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: