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

Replset metadata is not attached to command response on the exception path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Replication
    • None
    • ALL

    Description

      Both ConfigServerMetadata and ReplSetMetadata are added to a command response in Command::run on the normal path:

      https://github.com/mongodb/mongo/blob/ee5fbdd8540d93d2e0d6fa19ba9a5595bb1829cb/src/mongo/db/dbcommands.cpp#L1463-L1480

      but the ReplSetMetadata is not added on the exception path (though ConfigServerMetadata is):

      https://github.com/mongodb/mongo/blob/ee5fbdd8540d93d2e0d6fa19ba9a5595bb1829cb/src/mongo/db/dbcommands.cpp#L1324-L1342

      (Since the config server opTime from a config itself is reported as part of ReplSetMetadata, the ReplSetMetadata should always be returned.)

      Attachments

        Issue Links

          Activity

            People

              esha.maharishi@mongodb.com Esha Maharishi
              esha.maharishi@mongodb.com Esha Maharishi
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: