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

establishCursors should check if host is valid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2018-02-12
    • Linked BF Score:
      0

      Description

      ARS can return an uninitialized boost::option for shardHostAndPort if fails to contact the server. However, we do not perform any checks here:

      https://github.com/mongodb/mongo/blob/84c3f83421b262028081296e4c387d29691ea376/src/mongo/s/query/establish_cursors.cpp#L79

      Note: this bug is recently introduced and not an issue in v3.6.

        Attachments

          Activity

            People

            Assignee:
            redbeard0531 Mathias Stearn
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: