[CDRIVER-2219] OP_MSG support Created: 20/Jul/17  Updated: 28/Oct/23  Resolved: 05/Oct/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.9.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1405 OP_MSG support Closed
is depended on by DRIVERS-397 OP_MSG support Closed
is depended on by PHPC-979 OP_MSG support Closed
Related
related to CDRIVER-2357 "not master" error directly querying ... Closed
is related to CDRIVER-2306 OP_MSG support in mock server Closed
Epic Link: Cdriver MongoDB 3.6 Support

 Comments   
Comment by A. Jesse Jiryu Davis [ 09/Nov/17 ]

I mis-attributed this commit, it enables OP_MSG cursors with a "hint" to use secondaries, by injecting $readPreference: primaryPreferred.

https://github.com/mongodb/mongo-c-driver/commit/38e72de45fe1b3ec71be275bd507e29bb0d45a4e

Comment by Githook User [ 08/Nov/17 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2219 spelling: "compressible"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2784c05746fe810a2d4e87ca0a1201d5207ac586

Comment by Githook User [ 08/Nov/17 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2219 make mongoc_cluster_run_opmsg static
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9b37ad9b6ad3096efc54c75dcfcbb45afb2105f9

Comment by Githook User [ 25/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2219 delete mongoc_client_command_opmsg

Unused function introduced for debugging.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/1a08600d6e8e295da603d53b449c93d934bfc11a

Comment by Githook User [ 15/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2219 fix bulk error indexes with OP_MSG
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/86cb58d9122882d9b87b8b8f6503c7e466b9ce63

Comment by Githook User [ 05/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2219 remove wrong assert
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8f0b393eb930cc86074caa43551904d25ecb0996

Comment by Githook User [ 05/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2219 use OP_MSG for mongoc_client_command
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f4e0214e8b52759527bbb3d97dc63a722a720e0a

Comment by Ramon Fernandez Marina [ 13/Sep/17 ]

Author:

{'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}

Message:CDRIVER-2219 skip mock server test that uses OP_MSG
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/8261e8b376e6294e25d97f2b13e701bc24c3ec69

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Skip OP_MSG & APM
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/a3dc47e41fa147cc0984a54d1d75d40fbe319ae5

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Implement Payload Type=1 Writes
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/a580766d64b5c9232ac348e330d2e5de328bcb0a

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Use Relaxed Extended JSON to print the rpc

Canonical Extended JSON is way to verbose
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/77c19a5cdd77fbe4589e1a05b7d91efc1b8edf89

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Fix offset calc for multi documents

Also simplify the rpc debug helper
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/0f12b9d2782feef0418894bcd0134c89e21a5b5e

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Add _mongoc_buffer_append()
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/980f02b1b248c811ee29d6614ffc0f2b74745b00

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Remove unused collection buffer
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/7b959a10f25274bb0cf15c046809585aab07739d

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 REVERT ME. Disable a test failing on Windows
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/a50ec474dc62e01282a00bf5c82e4b66dbf2741c

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Fix leaks on write legacy write errors
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/383d67d6a9593bf40596181b38af5dea3eb5f796

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2219 Fix invalid read on error
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/858c4df5f58fe70f261bd82da5fd72507e604993

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:Revert "CDRIVER-2219 REVERT ME. Disable a test failing on Windows"

This reverts commit a50ec474dc62e01282a00bf5c82e4b66dbf2741c.
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/f9bf3acd42f7cc77cc679cca789687c4353afa24

Comment by Githook User [ 06/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Add a reference to the server_stream to the mongoc_cmd_t
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/abcac919a5c91a1bf355129e89d0825dcea68cea

Comment by Githook User [ 06/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: Revert "Revert "CDRIVER-2219 Add a reference to the server_stream to the mongoc_cmd_t""

This reverts commit 883636d3d1d06725ab5d9ce229be2ce5a4987e93.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/47edc43edf52a1f385d854b729733f7ef1836cce

Comment by Githook User [ 02/Sep/17 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: Merge remote-tracking branch 'upstream/master'

Comment by Githook User [ 02/Sep/17 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: Merge remote-tracking branch 'upstream/master'

Comment by Githook User [ 01/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: Revert "CDRIVER-2219 Add a reference to the server_stream to the mongoc_cmd_t"

This reverts commit 1a92d6dc942c68e3c303428aae4864b81a479b4d.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/883636d3d1d06725ab5d9ce229be2ce5a4987e93

Comment by Githook User [ 01/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Add a reference to the server_stream to the mongoc_cmd_t

This will make it easier to have the cmd_t construct a fully
qualified query based on the server_stream.
It'll also make it possible to construct a complete Payload Type 0
and re-use it for multiple batches of with Payload Type 1
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/1a92d6dc942c68e3c303428aae4864b81a479b4d

Comment by Githook User [ 31/Aug/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Add support for using Payload Type 2 in mongoc_cmd_t's
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c2073231209f20f5eef7263e969ae69ed47a031e

Comment by Githook User [ 31/Aug/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Simplify wire feature checks
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/62d536f59e4afe40bf3ee39c523e9a6078bba815

Comment by Githook User [ 31/Aug/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Refactor old legacy opcode writes
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b16b1eb9e51abb7ae603e951f6424dfa5e0ad24a

Comment by Hannes Magnusson [ 29/Aug/17 ]

Remaining work:

  • Refactor $readPreference code (which is now dupli, or probably triplicated); _cmd_parts_apply_read_preferences_mongos
  • Delete the public test function mongoc_client_command_opmsg()
  • Synthetic cursors
  • Sectional writes
Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Initial OP_MSG implementation
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/256129e6409e8483c2fb9d9372f79b2e8ed39c0c

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Define the new OP_MSG opcode
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6aac8f5c02607a397fcef8c78474cedaf317d7c5

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Add couple of missing disconnects and update arguments
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6b5a31304da2e0cb35bc32c5818ebca681225102

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Ensure we provide the server_id so we can disconnect on failure

And since we are passing the server_description around, we might
as well simplify the hostname in the auth functions
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/53e5ed256b083165ef6098b8aea1e3f67b53e60b

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Make opcode counter part of scatter/gather operations
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e6bfbc450c6b30a3b0cf88a6ba1c136688a1643f

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Rename mongoc_cluster_sendv_to_server -> mongoc_cluster_legacy_rpc_sendv_to_server

And clean up code formatting
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/7a34ccf2d2c93cbc8862ed68549c0fbcab384fd3

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Make the command name part of the mongoc_cmd_t
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/190b422c73d258575cf3ad44ad744030b08b2a64

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Remove compression check as we support noop compressor too
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d35a67a404e3311257b7ad331e4f12d69ce5ec04

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Add support for 'noop' compression

Makes it easier to test for and develop against.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/fcfd93a437459a0ae6f42254de72667daca7a70e

Comment by Githook User [ 29/Aug/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}

Message: CDRIVER-2219 Fix couple of leaks and opcode expectations
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9499b6a8f131a3d6414ee5658734a40a03b6a3ca

Generated at Wed Feb 07 21:14:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.