Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69146

loadBalanced field in handshake does not work with stable api in strict mode.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      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.

      Show
      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.
    • Repl 2022-09-05

      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

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: