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

harden checks around using --shardSvr, --overrideShardIdentity, and queryableBackupMode

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.11
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 18 (08/05/16)

      Description

      in queryableBackupMode:

      • require --overrideShardIdentity if started with --shardsvr
      • add a warning if started with --overrideShardIdentity but not --shardsvr

      in non-queryableBackupMode:

      • fail if started with --overrideShardIdentity
      • add a warning if a shardIdentity document exists on disk but not started with --shardsvr
      • add a warning if no shardIdentity document exists on disk but started with --shardsvr

      additionally:

      • use Date_t::max() as the deadline for initializeFromShardIdentity() in all cases
      • generally refactor startup and shard aware initialization code for clarity and conciseness

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              esha.maharishi Esha Maharishi
              Reporter:
              esha.maharishi Esha Maharishi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: