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

StartupUsingCreateWithConfig test listens on default port (27017)

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

      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@mongodb.com Joseph Prince
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: