[SERVER-69146] loadBalanced field in handshake does not work with stable api in strict mode. Created: 25/Aug/22  Updated: 29/Oct/23  Resolved: 29/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Blocker - P1
Reporter: Durran Jordan Assignee: Vesselina Ratcheva (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-68621 Investigate potentially unintended ad... Closed
Related
is related to NODE-4591 Only attach loadBalanced: true to han... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Connect to the server with mongosh or a driver (Node for example), that always has the loadBalanced option as true or false using the stable API in strict mode.

Sprint: Repl 2022-09-05
Participants:

 Description   

On latest server, or at least version 6.1.0-alpha-2369-g79662a1, the handshake now fails when loadBalanced is present in the hello command using the stable API in strict mode with the error: "BSON field 'hello.loadBalanced' is not allowed with apiStrict:true"

This means we cannot use the stable api in strict mode behind a load balancer or even when the field is present and false.

Is this the commit this was introduced?

https://github.com/mongodb/mongo/commit/17e0097a3a7968fe7cc7d557afa157d1579cef64



 Comments   
Comment by Githook User [ 29/Aug/22 ]

Author:

{'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'}

Message: SERVER-69146 Mark 'loadBalanced' and 'serviceId' fields with 'stability:stable'
Branch: master
https://github.com/mongodb/mongo/commit/d63fda339dfd920bc6ffc8cf5efad108df7b2085

Comment by Jeffrey Yemin [ 26/Aug/22 ]

Linking to SERVER-68621 as the most likely cause of this regression.

CC vesselina.ratcheva@mongodb.com

Generated at Thu Feb 08 06:12:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.