[SERVER-57391] Return an error upon receipt of OP_QUERY or OP_GET_MORE messages Created: 03/Jun/21  Updated: 29/Oct/23  Resolved: 16/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Irina Yatsenko (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
Backwards Compatibility: Major Change
Sprint: Query Execution 2021-07-12, Query Execution 2021-07-26
Participants:

 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"}}}}



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 16/Jul/21 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-57391 Remove now dead auth calls for OP_QUERY and OP_GET_MORE
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/80d1e7c55a9ae830379582cbdf5a026be291f569

Comment by Githook User [ 16/Jul/21 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-57391 Return error response to OP_QUERY and OP_GET_MORE messages
Branch: master
https://github.com/mongodb/mongo/commit/beeab6beaf18232e52bb3094f5f31fe83fbae2a4

Comment by Irina Yatsenko (Inactive) [ 03/Jun/21 ]

Please note, that we are migrating JSTESTS that test handling of the legacy op codes to C++ integration layer (https://jira.mongodb.org/browse/SERVER-57265) so we could remove the support for the opcodes from the shell. No new JSTESTS should be added for the legacy opcodes.

Generated at Thu Feb 08 05:41:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.