
OPERATIONAL DEFECT DATABASE
...

...
5.0.0-rc0 clusters (standalone mongod, mongos) running on macOS, I see many errors like this "ctx":"listener","msg":"Can't set socket option","attr":{"optname":"TCP_KEEPALIVE","error":"Invalid argument"}} The log is flooded with these errors: {"t":{"$date":"2021-06-04T13:16:52.682-07:00"},"s":"E", "c":"NETWORK", "id":23206, "ctx":"listener","msg":"Can't set socket option","attr":{"optname":"TCP_KEEPALIVE","error":"Invalid argument"}} {"t":{"$date":"2021-06-04T13:16:52.682-07:00"},"s":"W", "c":"NETWORK", "id":23023, "ctx":"listener","msg":"Error accepting new connection","attr":{"error":{"code":9001,"codeName":"SocketException","errmsg":"remote_endpoint: Invalid argument"}}} {"t":{"$date":"2021-06-04T13:16:52.682-07:00"},"s":"I", "c":"NETWORK", "id":23018, "ctx":"listener","msg":"Error accepting new connection on local endpoint","attr":{"localEndpoint":"127.0.0.1:27017","error":"Invalid argument"}} The connections that error are coming from an otherwise idle load balancer (haproxy). When a driver connects directly to the mongod/s the error does not occur. What does this error mean and why do these errors occur for haproxy connections? The load balancer is started and stopped with this run-load-balancer.sh script, like this: $ sudo MONGODB_URI='mongodb://localhost:27017,localhost:27018/' .evergreen/run-load-balancer.sh start Starting HAProxy... Single Mongos LB: mongodb://127.0.0.1:8000/?loadBalanced=true Multiple Mongos LB: mongodb://127.0.0.1:8001/?loadBalanced=true $ sudo MONGODB_URI='mongodb://localhost:27017,localhost:27018/' .evergreen/run-load-balancer.sh stop Stopping HAProxy...
xgen-internal-githook commented on Thu, 17 Mar 2022 16:07:13 +0000: Author: {'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'} Message: SERVER-57466 Swallow connection reset-related errors received during ASIO session establishment (cherry picked from commit ffededcdc670d83f4fdf5819f5ab1d9c5750c67c) SERVER-57466 fix windows compile (cherry picked from commit 37595d5ee16f06c964b9d416e5847b99c1a537d8) Branch: LB https://github.com/mongodb/mongo/commit/140b0f4016fc753c14c4e88d2decf37c37c6a60d xgen-internal-githook commented on Wed, 16 Mar 2022 19:39:47 +0000: Author: {'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'} Message: SERVER-57466 Swallow connection reset-related errors received during ASIO session establishment (cherry picked from commit ffededcdc670d83f4fdf5819f5ab1d9c5750c67c) SERVER-57466 fix windows compile (cherry picked from commit 37595d5ee16f06c964b9d416e5847b99c1a537d8) Branch: v5.0 https://github.com/mongodb/mongo/commit/ea8eccd0a2210d84493b516e470ebb3df2beca8b xgen-internal-githook commented on Sat, 16 Oct 2021 12:55:55 +0000: Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'} Message: SERVER-57466 fix windows compile Branch: master https://github.com/mongodb/mongo/commit/37595d5ee16f06c964b9d416e5847b99c1a537d8 xgen-internal-githook commented on Thu, 14 Oct 2021 21:35:34 +0000: Author: {'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'} Message: SERVER-57466 Swallow connection reset-related errors received during ASIO session establishment Branch: master https://github.com/mongodb/mongo/commit/ffededcdc670d83f4fdf5819f5ab1d9c5750c67c shane.harvey commented on Wed, 1 Sep 2021 15:17:31 +0000: Thanks Blake, just FYI this issue is not a blocker. The only side effect here as far as I can tell is that the server logs are flooded NETWORK errors. matthew.saltz commented on Wed, 16 Jun 2021 15:39:05 +0000: Okay, thanks! jeff.yemin commented on Tue, 15 Jun 2021 18:26:25 +0000: That's correct, shane.harvey matthew.saltz commented on Tue, 15 Jun 2021 17:14:16 +0000: shane.harvey Would we need to fix this before 5.0 release?
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.