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

empty tag sets [{}] asserts with primary read preference

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • None
    • Internal Client
    • None
    • ALL

    Description

      In jsTests, with a ReplicaSetConnection:

      conn.setReadPref("primary", [{}]);

      ... always results in:

      Thu Jan 17 16:51:38.864 javascript execution failed src/mongo/shell/query.js:78 socket error on query
      this._cursor = this._mongo.find( this._ns , this._query , this._fields , this.

      [{}] should be treated the same as null, but apparently it's treated some other way.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: