StartupUsingCreateWithConfig test listens on default port (27017)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • Fully Compatible
    • ALL
    • Egress gRPC 2025-01-31
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The StartupUsingCreateWithConfig creates a TransportLayerManager using the serverGlobalParams, which leads to the asio layer listening on the default port of 27017. This could fail if our tests are running in parallel or if the host happens to be running another mongod instance. We should update this to let the kernel use an arbitrary open port to avoid collisions.

      {"t":{"$date":"2025-01-24T22:09:21.511Z"},"s":"I",  "c":"TEST",     "id":23059,   "ctx":"main","msg":"Running","attr":{"test":"StartupUsingCreateWithConfig","rep":1,"reps":1}}
      {"t":{"$date":"2025-01-24T22:09:21.518Z"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":26},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":26},"outgoing":{"minWireVersion":6,"maxWireVersion":26},"isInternalClient":false}}}
      {"t":{"$date":"2025-01-24T22:09:21.539Z"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-0.sock"}}
      {"t":{"$date":"2025-01-24T22:09:21.539Z"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1:35253"}}
      {"t":{"$date":"2025-01-24T22:09:21.539Z"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":35253,"ssl":"on"}}
      {"t":{"$date":"2025-01-24T22:09:21.548Z"},"s":"I",  "c":"NETWORK",  "id":7401305, "ctx":"main","msg":"Started gRPC server","attr":{"addresses":["127.0.0.1:40511","/tmp/mongodb-grpc-0.sock"],"services":["mongodb.CommandService"]}}
      {"t":{"$date":"2025-01-24T22:09:21.576Z"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
      {"t":{"$date":"2025-01-24T22:09:21.576Z"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1:27017"}}
      {"t":{"$date":"2025-01-24T22:09:21.576Z"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"on"}}
      

            Assignee:
            Joseph Prince
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: