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

establishCursors should check if host is valid

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.2
    • Affects Version/s: 3.7.1
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-02-12
    • 0

      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.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: