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

Return an error upon receipt of OP_QUERY or OP_GET_MORE messages

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • None
    • None
    • Major Change
    • Query Execution 2021-07-12, Query Execution 2021-07-26

    Description

      As part of removing support for OP_QUERY or OP_GET_MORE, the server should return an error indicating that these wire protocol op codes are no longer supported.

      However, we need to make sure that the server continues to accept OP_QUERY isMaster commands so that the connection handshake continues to work.

      We should ensure that we still count attempted uses of OP_QUERY and OP_GET_MORE in db.serverStatus().opcounters.deprecated. We must also continue to log warning id 5578800, e.g.:

      {"t":{"$date":"2021-06-03T11:35:40.983-04:00"},"s":"W",  "c":"COMMAND",  "id":5578800, "ctx":"conn1","msg":"Deprecated operation requested","attr":{"op":"query","clientInfo":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"5.0.0-alpha0"},"os":{"type":"Linux","name":"Ubuntu","architecture":"x86_64","version":"18.04"}}}}
      

      Attachments

        Activity

          People

            irina.yatsenko@mongodb.com Irina Yatsenko
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: