[JAVA-1887] Implement command monitoring specification Created: 14/Jul/15  Updated: 25/Nov/15  Resolved: 21/Sep/15

Status: Closed
Project: Java Driver
Component/s: Monitoring
Affects Version/s: None
Fix Version/s: 3.1.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-247 Implement APM Spec Closed
Duplicate
is duplicated by JAVA-1110 Driver events Closed
is duplicated by JAVA-1980 Add a hook for monitoring performance... Closed
Related
is related to JAVA-2009 Implement command monitoring specific... Closed

 Description   

The specification is here.



 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Replaced use in a test of a deprecated method in the Connection interface.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a40a0bec67d318110185fc00485aaa36a6270dcd

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Forcing acknowledgment of writes in some tests, so that other subsequent tests are not affected.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5df367d5c632a7f15bc6cc82822e220cc334c001

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Ignoring write command event test that fails on 2.2 due to its smaller maxMessageSize.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/07052ccee29d6fa89003935757fdc217dd569955

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Fixed bug in WriteProtocol where a WriteConcernException is thrown for an unacknowledged insert that had to be split due to message size
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fc6dda94721fb867b257832767803ca69ff038b7

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Fixed CommandMonitoringTest so that it works on Java 6 when SSL is enabled
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dbc5e625289b430e0c808394f24355d1085cd0ba

Comment by Githook User [ 16/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Added reference documentation for CommandListener
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/07fc213b192c6b608ed5b221033bc4a6bc17c318

Comment by Githook User [ 16/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Added support for registering one or more CommandListener instances with MongoClient via MongoClientOptions.addCommandListener
Added command monitoring specification tests from https://github.com/mongodb/specifications/tree/master/source/command-monitoring/tests
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dac1477d9d56a4848df85abb04cf5b41a4c80726

Comment by Githook User [ 16/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: Added CommandListener interface and associated events.
Publishers appropriate command events in each implementation of the Protocol interface.
In order to avoid double-decoding or double-encoding, added implementations of ByteBuf
and BsonDocument that allow the command event publishers to efficiently generate
command events from ByteBuf instances containing encoding BSON
Added support for registering a CommandListener with the DefaultClusterFactory.
Added CommandListenerMulticaster to allow registration of multiple command listeners.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/735bb26f8c804777afaa5526ed15f9d36f64a19e

Comment by Githook User [ 16/Sep/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1887: BsonDocument and its subclasses are now Cloneable as well as Serializable, so that users can efficiently copy a BsonDocument without knowing its concrete class.
This is in order to facilitate upcoming CommandListener implementations to clone BsonDocument instances representing commands and command responses.

BsonValue subclasses besides BsonDocument are no long Serializable, which is a binary compatibility break. Also, the serialization format of BsonDocument and its subclasses
has been changed in a way that is incompatible with the previous one.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/96d9170522ef74f24632190b12a39058fbe34145

Generated at Thu Feb 08 08:55:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.