Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16233

Investigate changes in SERVER-78384: mongos should allow --port 0

    XMLWordPrintableJSON

Details

    Description

      Original Downstream Change Summary

      Consolidates the verification logic for the listening port (i.e. net.port), so that it accepts values in the following range for mongod, mongos, and mongoq: [0, 65535]

      Description of Linked Ticket

      mongos, unlike mongod, does not allow listening on an arbitrary OS-assigned port by specifying --port 0.

      In ancient times (2010), validation for --port was added to the server.

      Then, in slightly less ancient times (2013), this validation was split into separate validation code for mongod and mongos.

      And then, in not-even-all-that-long-ago times (2017), the validation for mongod was updated to allow port 0, but no such update was done for the corresponding mongos argument validation.

      We should apply that update there as well.

      Attachments

        Activity

          People

            kenneth.dyer@mongodb.com Kenneth Dyer
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17 weeks, 1 day ago