[CXX-2342] Load balancer: Add serviceId to events Created: 09/Aug/21  Updated: 06/May/22  Resolved: 17/Sep/21

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

Type: Improvement Priority: Unknown
Reporter: Kevin Albertson Assignee: Jesse Williamson (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Load Balancer Support
Quarter: FY22Q2

 Description   

Scope
Implement the changes described in the Events section of the load balancer specification.

  • Add serviceId to CommandFailedEvent, CommandSucceededEvent, and CommandStartedEvent

Not in scope

  • Adding serviceId to PoolClearedEvent. The C++ driver has no PoolClearedEvent.


 Comments   
Comment by Githook User [ 17/Sep/21 ]

Author:

{'name': 'Jesse Williamson', 'email': 'jesse.williamson@mongodb.com', 'username': 'chardan'}

Message: CXX-2342 add serviceid to events (#823)

  • Set up bsoncxx spuport for catch, etc..

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Update event commands.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Import rewritten mongoc_symbols

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Add unit test for serviceId availability.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Various cleanup; fix nullopt_t usage; remove is_load_balanced()

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Tests for mocked load-balanced or non-load-balanced service_id.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Apply clang-format.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Cleanups in response to review comments.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Small fixups in response to review.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

  • Update test, move function object to lambda.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/fd84da871c35cbc4beee0b39afa188b84c698fc1

Generated at Wed Feb 07 22:05:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.