[JAVA-5121] Relax the CMAP documentation requirement for durations in events Created: 28/Aug/23  Updated: 05/Jan/24  Resolved: 05/Jan/24

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

Type: Improvement Priority: Minor - P4
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:
Documented
Issue split
split from DRIVERS-2707 Relax the CMAP documentation requirem... Implementing
Upstream Changes Summary:

DRIVERS-2707:
Update the driver implementation and documentation of CMAP event durations according to the specification changes in https://github.com/mongodb/specifications/pull/1455.

Backwards Compatibility: Minor Change
Documentation Changes: Needed
Documentation Changes Summary:

Let's mention in What's new the following changes:

  • The elapsed time reported via `com.mongodb.event.ConnectionReadyEvent.getElapsedTime` now includes the time to deliver `com.mongodb.event.ConnectionCreatedEvent`, which is the execution duration of the method `com.mongodb.event.ConnectionPoolListener.connectionCreated` on all relevant listeners.
  • The elapsed time reported via `com.mongodb.event.ConnectionCheckedOutEvent`/`ConnectionCheckOutFailedEvent.getElapsedTime` now includes the time to deliver `com.mongodb.event.ConnectionCheckOutStartedEvent`, which is the execution duration of the method `com.mongodb.eventConnectionPoolListener.connectionCheckOutStarted` on all relevant listeners.

This change is non-breaking because the previous behavior was documented as being subject to change.


 Description   

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



 Comments   
Comment by Githook User [ 05/Jan/24 ]

Author:

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

Message: Account the time to deliver connection pool events as part of the reported duration (#1290)

JAVA-5121
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/42fdd3f2426d6f30dffe456d28cfddfa3a3380dc

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