Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-229

Verify calling listDatabases, etc. via direct connection to secondary

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-920 Done 2.8.1
      PYTHON-921 Done 2.8.1
      PHP-1444 Won't Fix
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-920 Done 2.8.1 PYTHON-921 Done 2.8.1 PHP-1444 Won't Fix

      In SERVER-15994, the listIndexes, listCollections, and listDatabases commands began requiring the slaveOk bit if the server is a secondary. This was particularly surprising in the case of listDatabases, since the command is many years old, and it broke PyMongo's database_names helper method via direct connection to a secondary (PYTHON-921).

      All drivers should check that they set the slaveOk bit when calling any of these three commands if they are directly connected to a mongod. That is, set the bit unless the client is connected to a replica set or a mongos.

      Drivers implementing the Server Selection Spec already act this way, but legacy implementations need to be validated.

            Assignee:
            barrie Barrie Segal
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: