[JAVA-4092] Use "hello" command when API Version is declared Created: 31/Mar/21  Updated: 28/Oct/23  Resolved: 24/May/21

Status: Closed
Project: Java Driver
Component/s: Wire Protocol
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Quarter: FY22Q2

 Description   

DRIVERS Ticket Description
Script Target - If you can read this text, the script has failed


 Comments   
Comment by Githook User [ 24/May/21 ]

Author:

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

Message: Use "hello" command where possible (#717)

There are two scenarios where "hello" command can be used:

1. When the application declares an API version
3. When the response to "ismaster" contains helloOk: true

Additionally, use OP_MSG when the application declares an API version,
even when maxWireVersion is unknown during the handshake

JAVA-4092
JAVA-4157
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1db10dc53acc41b0b2b1fd3d54c5301c96ba2261

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