[DRIVERS-1671] Add log messages to Server selection spec Created: 05/Aug/20  Updated: 07/Feb/24

Status: Implementing
Project: Drivers
Component/s: Logging, Server Selection
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Esha Bhargava Assignee: Boris Dogadov
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DRIVERS-2530 Do not perform server selection to de... Implementing
Issue split
split to CDRIVER-4487 Add log messages to Server selection ... Backlog
split to CXX-2588 Add log messages to Server selection ... Backlog
split to RUBY-3146 Add log messages to Server selection ... Backlog
split to PHPLIB-1000 Add log messages to Server selection ... Blocked
split to PYTHON-3459 Add log messages to Server selection ... In Code Review
split to CSHARP-4347 Add log messages to Server selection ... Closed
split to GODRIVER-2572 Add log messages to Server selection ... Closed
split to JAVA-4754 Add log messages to Server selection ... Closed
split to MOTOR-1039 Add log messages to Server selection ... Closed
split to NODE-4687 Add log messages to Server selection ... Closed
split to RUST-1495 Add log messages to Server selection ... Closed
Problem/Incident
causes DRIVERS-2762 Don't produce server selection log me... Needs Triage
Tested
tested by DRIVERS-2831 Add more comprehensive unified tests ... Needs Triage
Epic Link: Easier debugging with standardized logging
Driver Changes: Needed
Quarter: FY23Q3, FY23Q4, FY24Q1
Downstream Changes Summary:

Log messages and corresponding tests for server selection logging were added via this commit.

In summary, drivers will need to:

  • Implement the log messages defined here
  • Run the unified format tests defined here
Start date:
Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4487 Backlog
CXX-2588 Backlog
CSHARP-4347 Done 2.20.0
GODRIVER-2572 Fixed 1.13.0, 1.13.1
JAVA-4754 Done 5.0.0
NODE-4687 Fixed 6.4.0
MOTOR-1039 Duplicate
PYTHON-3459 In Code Review
PHPLIB-1000 Blocked
RUBY-3146 Backlog
RUST-1495 Fixed 2.6.0
SWIFT-1645 Won't Do

 Description   

Define both structured and unstructured versions of log messages for any existing logging behavior in this spec, and add new messages drivers should produce. If possible, update tests to include logging expectations.

Add an explicit test to ensure that no extra server selection events are observed for session support in accordance with DRIVERS-2530.

Note for implementers: DRIVERS-2530 is a pre-requisite to avoid race conditions in tests like this one.



 Comments   
Comment by Boris Dogadov [ 30/May/23 ]

Yes, thanks kaitlin.mahar@mongodb.com .

Comment by Githook User [ 30/May/23 ]

Author:

{'name': 'BorisDog', 'email': 'BorisDog@users.noreply.github.com', 'username': 'BorisDog'}

Message: DRIVERS-1671: Add server selection log message and tests (#1424)

DRIVERS-1671: Add server selection log message and test

Co-authored-by: Kaitlin Mahar <kaitlinmahar@gmail.com>
Co-authored-by: vector-of-bool <vectorofbool@gmail.com>
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Branch: master
https://github.com/mongodb/specifications/commit/c773534925f83ecc5728971442baa63d69ecf0ce

Comment by Boris Dogadov [ 01/Mar/23 ]

Moved to Scheduled.

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