mongos does not validate port and accepts values outside of valid range.
This was found when I added port validation to MMS (there are users running with values outside the normal range in production).
I started mongos using:
- mongos --port 87161 --configdb localhost:27022
mongos> db.mongos.find().pretty();
{
"_id" : "my.local:27017",
"mongoVersion" : "2.4.4",
"ping" : ISODate("2013-07-02T19:10:40.901Z"),
"up" : 256,
"waiting" : true
}
{
"_id" : "my.local:27030",
"mongoVersion" : "2.4.4",
"ping" : ISODate("2013-07-02T19:10:40.445Z"),
"up" : 252,
"waiting" : true
}
{
"_id" : "my.local:87161",
"mongoVersion" : "2.4.4",
"ping" : ISODate("2013-07-02T19:10:41.305Z"),
"up" : 184,
"waiting" : true
}
- duplicates
-
SERVER-7808 mongos allows you to specify an invalid port number
-
- Closed
-
- is related to
-
SERVER-100794 Add memory tracking metrics to $currentOp
-
- Closed
-