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

Reword shard identity startup logs to apply to a config server

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding NYC 2023-03-06, Sharding NYC 2023-03-20, Sharding NYC 2023-04-03

    Description

      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.

      Attachments

        Activity

          People

            wenqin.ye@mongodb.com Wenqin Ye
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: