Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3054

OP_QUERY isMaster used in load balancer mode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.0.0, 1.13.1
    • 1.13.0
    • None
    • None
    • Not Needed
    • Hide

      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?

      Show
      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

      Context


      We found in serverless tests that Go driver uses OP_QUERY with isMaster in load balancer mode. Howerver, the spec says OP_MSG must be used.

      [2023/10/02 17:49:04.806] [ProxySession(60e60c6ccbd24f21a039c13a_,10673-drivers-testing-lb.2tzoa.mongodb-dev.net,3.236.71.14:54856).debug] [session_proxy.go:handleQueryMessage:498] got OP_QUERY isMaster
      [2023/10/02 17:49:04.806] [ProxySession(60e60c6ccbd24f21a039c13a_,10673-drivers-testing-lb.2tzoa.mongodb-dev.net,3.236.71.14:54856).info] [session_proxy.go:handleClientMetadata:407] received client metadata from 3.236.71.14:54856:{"driver":{"name":"mongo-go-driver","version":"v1.13.0-prerelease"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.20.8"}
      

      Definition of done

      Hello commamnd with OP_MSG is used instead.

      Pitfalls

      What should the implementer watch out for? What are the risks?

      Attachments

        Activity

          People

            preston.vasquez@mongodb.com Preston Vasquez
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: