Reword shard identity startup logs to apply to a config server

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding NYC 2023-03-06, Sharding NYC 2023-03-20, Sharding NYC 2023-04-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When starting up a mongod with the shard server role, we check for the existence of a shard identity document on disk. If we cannot find it, we log:

       "Started with --shardsvr, but no shardIdentity document was found on disk. This most likely means this server has not yet been added to a sharded cluster"

      Now that a config server will always have the shard role, it's not accurate to say "started with --shardsvr." We should reword the log to be less specific to the particular command line option and instead say something like "Started with shard role, but ..." and exclude the "This most likely means" sentence on a config server, since the config server will insert its own shard identity document on first step up to primary.

            Assignee:
            Wenqin Ye
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: