[JAVA-4754] Add log messages to Server selection spec Created: 07/Oct/22  Updated: 05/Nov/23  Resolved: 05/Nov/23

Status: Closed
Project: Java Driver
Component/s: Logging
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Valentin Kavalenka
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to JAVA-5197 Support the "operation" key when doin... Backlog
split from DRIVERS-1671 Add log messages to Server selection ... Implementing
Epic Link: Easier debugging with standardized logging
Quarter: FY23Q4, FY24Q1
Upstream Changes Summary:

DRIVERS-1671:
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
Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

This ticket was split from DRIVERS-1671, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 04/Nov/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Emit log messages from `LoadBalancedCluster` despite there being no server selection

JAVA-4754
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/616ab9d32470d5f9aec3abdd3c3664256c49f52f

Comment by Githook User [ 04/Nov/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Make `ServerSelectionLoggingTest` pass when run against a load balanced cluster, or when using Unix domain socket

JAVA-4754
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ac477f26acb0b7e204a9343566dace6938c871ef

Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Add server selection log messages (#1221)

JAVA-4754
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d375cd45b2cb60cf4400e8f0ed250ef933af9604

Generated at Thu Feb 08 09:02:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.