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

FeatureCompatibilityVersion::set should check if node can accept writes

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc2
    • Affects Version/s: 3.4.0-rc1
    • Component/s: Internal Code, Querying
    • None
    • Fully Compatible
    • Query 2016-11-21
    • 0

      If the primary config server stepped down in the middle of ConfigSvrSetFeatureCompatibilityVersionCommand, FeatureCompatibilityVersion::set will still be called. This triggers an fassert in logOp.

      It looks like the fassert can be avoided if the command does a canAcceptWritesFor check when doing writes.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: